[root@localhost xscan]# git pull
fatal: repository 'http://gitlab.***.com/***.git/' not found

原因1: 可能 remote 远程地址已经更改,注意远程地址是否为项目源地址,并通过 git remote -v 校验

原因2: 如果不是上一种的情况下,可能是以前使用其他账户操作,其他账户信息被保存,但是此账户又被从远端仓库删除,导致没有使用默认的账户没有权限访问

  解决办法1:

    git clone http://username:password@192.168.*.*/**/**.git

     解决办法2: 删除原因保存的账户信息

            vim ~/.git-credentials

相关文章:

  • 2022-12-23
  • 2022-01-24
  • 2021-09-18
  • 2021-06-27
  • 2021-08-17
  • 2022-12-23
  • 2021-09-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
  • 2021-04-10
相关资源
相似解决方案