github 本地 fatal: couldn‘t find remote ref master错误解决方案
fatal: couldn't find remote ref master错误解决方案
·
$ git pull --rebase origin master
fatal: couldn't find remote ref master
我不知道大家啥情况 反正我搜半天 翻车好多回 反而最后简单解决了
因为host上其实并没有master分支 只有main分支 所以我把master改成main 马上就好了
$ git pull --rebase origin main
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), 591 bytes | 73.00 KiB/s, done.
From github.com:******(url)
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
warning: skipped previously applied commit dedf309
hint: use --reapply-cherry-picks to include skipped commits
hint: Disable this message with "git config advice.skippedCherryPicks false"
Successfully rebased and updated refs/heads/master.
更多推荐
已为社区贡献1条内容
所有评论(0)