git rebase fatal: Needed a single revision

后端 未结 6 1231
花落未央
花落未央 2020-12-12 23:04

I have a branch of a public repository and I am trying to update my branch with the current commits from the original repository:

$ git fetch 
         


        
6条回答
  •  轮回少年
    2020-12-12 23:41

    To make origin/master the default branch for remote origin, and thus make git rebase origin work:

    $ echo "ref: refs/remotes/origin/master" > .git/refs/remotes/origin/HEAD
    

提交回复
热议问题