讓現有的 Git 分支跟蹤遠端分支? - Make an existing Git branch track a remote branch?

語言: CN / TW / HK

問題:

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 .git/config file, but it seems there should be an easier way.我知道我可以編輯.git/config檔案,但似乎應該有更簡單的方法。


解決方案:

參考一: https://stackoom.com/question/2BRa
參考二: Make an existing Git branch track a remote branch?
「其他文章」