在自己创建的gitlab项目上  第一次push进去代码的时候 失败

gitlab fatal: 'origin' does not appear to be a git repository

网上查了很多都是github的   

git remote -v 发现我的origin没有后面没跟地址

gitlab fatal: 'origin' does not appear to be a git repository

于是一出origin 然后再添加上去

git remote remove origin

然后找到你的项目的git地址,可以去这里复制过来

 

gitlab fatal: 'origin' does not appear to be a git repository

 

git remote add origin http:XXXXXXX.git

再次

git remote -v  

发现正常了

gitlab fatal: 'origin' does not appear to be a git repository

然后就可以push了

gitlab fatal: 'origin' does not appear to be a git repository

相关文章:

  • 2022-03-04
  • 2022-12-23
  • 2022-01-28
  • 2022-12-23
  • 2021-11-28
  • 2022-01-08
  • 2022-12-23
猜你喜欢
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-20
  • 2022-12-23
  • 2021-06-02
相关资源
相似解决方案