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

git pull origin master     

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

fatal: Could not read from remote repository.

git仓库中没有origin分支

解决:

git remote -v
 git remote add main git@github.com:QVChen/test_dds.git//仓库复制
// git remote add [<options>] <name> <url>

如图

  1. error: failed to push some refs to 'XXXX.git'

git push -u -origin main//输入后报错

解决:

git pull --rebase origin main

没仔细看按Y不停重复,试了下按N,完成rebase

然后

 git push -u -origin main

push成功

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐