Update a local branch with the changes from a tracked remote branch
问题 I have a local branch named ' my_local_branch ', which tracks a remote branch origin/my_remote_branch . Now, the remote branch has been updated, and I am on the ' my_local_branch ' and want to pull in those changes. Should I just do: git pull origin my_remote_branch:my_local_branch Is this the correct way? 回答1: You have set the upstream of that branch (see: "How do you make an existing git branch track a remote branch?" and "Git: Why do I need to do --set-upstream-to all the time?" ) git