git推送失败的问题

git报错如下:

fatal: 'origen' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
开始以为是权限的问题,然后就更改了所有的config,可是仍然不行,后来通过设置origen解决(原来clone来的远程库需要正确设置origen)

命令:$ git remote add origin [email protected]:isuifeng(github帐号名)/gitdemo(项目名).git

然后再次$ git push origen master 成功

你可能感兴趣的:(git推送失败的问题)