git 跟踪上游分支
How to set a local branch’s upstream tracking branch in git? For example, I want to track remote repository ‘origin’ ‘s branch ‘demo’ with the local ‘demo’ branch.
如何在git中设置本地分支的上游跟踪分支? 例如,我想用本地“ demo”分支跟踪远程存储库 “ origin”的分支“ demo”。
You can set tracking information for the current branch (say cur_branch) of upstream branch (say also cur_branch) in remote repository origin with:
您可以使用以下方法为远程存储库源中的上游分支(也称为cur_branch)的当前分支(例如cur_branch)设置跟踪