Make an existing Git branch track a remote branch?

前端 未结 22 3004
执念已碎
执念已碎 2020-11-21 07:16

I know how to make a new branch that tracks remote branches, but how do I make an existing branch track a remote branch?

I know I can just edit the

22条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-11-21 08:08

    Make sure you run :

    git config push.default tracking
    

    to be able to push trouble free

提交回复
热议问题