H
H
Holfamer2015-01-02 17:08:09
git
Holfamer, 2015-01-02 17:08:09

How does the tracking branch work in git?

I ran this command: git branch --track local branch origin/remote_branch. So I added a local branch local_branch that tracks the remote branch remote_branch. What actions will happen in local_branch if something is changed in the remote_branch branch? What should be done about it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2015-01-02
@holfamer

What actions will happen in local_branch if something is changed in the remote_branch branch?

None. All actions must be performed by yourself. Tracking makes it possible to simply write git pull, without specifying which remote to fetch and which branch to merge with.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question