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

在自己创建的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