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

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

gitlab fatal: 'origin' does not appear to be a git repository_第1张图片

网上查了很多都是github的   

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

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

git remote remove origin

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

 

 

git remote add origin http:XXXXXXX.git

再次

git remote -v  

发现正常了

然后就可以push了

gitlab fatal: 'origin' does not appear to be a git repository_第2张图片

你可能感兴趣的:(git)