git checkout tag, git pull fails in branch

后端 未结 14 577
渐次进展
渐次进展 2021-01-29 22:51

I have cloned a git repository and then checked out a tag:

# git checkout 2.4.33 -b my_branch

This is OK, but when I try to run git pull<

14条回答
  •  梦如初夏
    2021-01-29 23:17

    Switch back to the master branch using

    $ git checkout master
    

    and then run the git pull operation

    $ git pull origin/master
    

    Afterwards, you can switch back to your my_branch again.

提交回复
热议问题