问题:

自己的项目不止一个,帐号也不同,在clone的时候都又自动保存git的账户和密码功能,然而当clone 第二个项目的时候就会报一下错误

$ git clone https://gitlab.com/abc/abc-abc-xxx.git
Cloning into 'abc-abc-xxx'...
remote: The project you were looking for could not be found.
fatal: repository 'https://gitlab.com/abc/abc-abc-xxx.git/' not found

解决方法:

之前试了几种方案,比如把以前的帐号删除,这样比较麻烦等,都没有特别好的效果。

经过同事的交流与网上查看,发现了一个新的解决方法。

在项目前面添加用户名

git clone https://gitlab.com/abc/abc-abc-xxx.gitgit clone https://xxxx@gitlab.com/abc/abc-abc-xxx.git

xxxx 即是用户名


$ git clone https://xxxx@gitlab.com/abc/abc-abc-xxx.git
Cloning into 'abc-abc-xxx'...
Password for 'https://xxxx@gitlab.com':
remote: Enumerating objects: 5733, done.
remote: Counting objects: 100% (5733/5733), done.
remote: Compressing objects: 100% (3238/3238), done.
remote: Total 5733 (delta 2437), reused 5466 (delta 2194)
Receiving objects: 100% (5733/5733), 124.74 MiB | 449.00 KiB/s, done.
Resolving deltas: 100% (2437/2437), done.
Checking out files: 100% (2617/2617), done.

至此,代码clone完毕

git clone 报 “remote: The project you were looking for could not be found.”相关推荐

  1. git clone报错:Permission denied (publickey). fatal: Could not read from remote repository...

    原文:git clone报错:Permission denied (publickey). fatal: Could not read from remote repository- 今天clone一 ...

  2. 【git clone 报错】fatal: unable to access ‘https://github.com/zimeng303/React.git/‘: Failed to connect

    [git clone 报错]fatal: unable to access 'https://github.com/zimeng303/React.git/': Failed to connect t ...

  3. 【实习小tip】elementUI表格数值加减和实时计算、导出数据并解决手机号科学计数法格式问题、git clone报错:OpenSSL SSL_connect: SSL_ERROR_SYSCALL

    element表格数值加减和实时计算 实现效果: 代码: <el-table :data="voListForm" border show-summary :summary- ...

  4. git clone报错:remote: The project you were looking for could not be found.

    $ git clone http://xxx Cloning into 'xxx'... remote: The project you were looking for could not be f ...

  5. git clone 报“The project you were looking for could not be found.”

    因为自己的项目不止一个 又有自动保存git密码的功能,当clone第二个项目的时候就报了如下错误 之前一直是找到钥匙串删除,发现有时候并没有效果.今天在网上搜了一下 发现了一个新的解决办法 在项目前面 ...

  6. git clone 报错:error: RPC failed; curl 18 transfer closed with outstanding read

    欢迎移步我的个人博客 git clone 时候报错如下 error: RPC failed; curl 18 transfer closed with outstanding read data re ...

  7. 在git clone报错

    在阿里云新买了一台服务器,用的原正常运行的系统做的镜像文件,但在拉代码的时候提示如下报错: [root@ap001 ]# git clone git@192.168.1.24:java/psd.git ...

  8. git clone 报错

    使用git clone代码的时候,报错如下: admin@DESKTOP-4O5VKBO MINGW64 /e/workspace $ git clone --depth 1  git@code.al ...

  9. git clone报错 emote: http basic: access denied

    git clone 的时候报错 $ git clone xxxxxxxxxxxxx Cloning into 'xxxxxxxxxxxxxxxxxx' remote: HTTP Basic: Acce ...

最新文章

  1. jQuery UI 之 LigerUI 快速入门
  2. LeetCode Longest Increasing Subsequence(动态规划、二分法)
  3. 用angr解二进制题目1
  4. 基于比率的路由到旧版和现代应用程序–通过Spring Cloud的Netflix Zuul
  5. fit_generator生成的history显示 key_error,并且没有loss 和 val_accuracy
  6. Bailian2811 熄灯问题【暴力】
  7. matlab制作科学计算器,MATLAB科学计算器设计
  8. 工程师笔记 | 嵌入式工程师常用软件
  9. 深度学习笔记----拓扑结构动态变化网络(Dropout,Drop Connect, Stochastic Depth, BranchyNet,Blockdrop,SkipNet)
  10. 【Java学习笔记】 MYSQL03 学习使用JDBC访问数据 以及 JDBC的优化和封装
  11. mysql热备工具_MySQL热备工具Xtrabackup
  12. Qt读写Excel--QXlsx合并单元格、文本对齐7
  13. node.js毕业设计安卓校园代办助手app(程序+APP+LW)
  14. 图片转cad用什么软件?转换有技巧
  15. 计算机组成原理第三章笔记---计算机功能与互联
  16. 计算机小知识140,电脑小知识140个小技巧(7)
  17. @Primary 和 @Qualifier的区别
  18. CTFshow web17
  19. 无源测向技术介绍——振幅法测向
  20. 微软CEO鲍尔默失策太多次 应只拿1美元年薪

热门文章

  1. 音视频技术开发周刊 | 279
  2. python 时间记录
  3. MySQL 之 ROUND 函数四舍五入的陷阱
  4. python解压rar文件
  5. Hyper-V安装Server 2019虚拟机
  6. html中圆角的度,cssli圆角
  7. 高数:微分中值定理介值定理证明题浅析
  8. uboot mmc 命令 read write 说明
  9. Win10 NVIDIA Container占用CPU高的处理方法
  10. HDLbits练习答案(完) 只有你一个success啊