github 本地 fatal: couldn‘t find remote ref master错误解决方案
时间:2023-12-01 17:07:08
$ 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.