How to make an existing branch track a remote branch?

后端 未结 1 1145
栀梦
栀梦 2021-02-19 18:17

I\'m trying to track an exiting branch to a remote branch using --track or --set-upstream-to, but got the following error

$ git branch          


        
相关标签:
1条回答
  • 2021-02-19 19:17

    I think I got it, it will be as the following (used --set-upstream-to + remote name)

    $ git branch --set-upstream-to origin/master
    Branch master set up to track remote branch master from origin.
    
    0 讨论(0)
提交回复
热议问题