Описание тега git-track

In git, tracking branches are local branches that relate to a remote branch.

Pull/push operations in git have to specify a repository and branch to pull from (or push to). A branch can be made to track a specific branch so that push/pull operations take the tracked branch as the default target.

For example, when cloning a repository, the master branch will track the corresponding branch origin/master. and

When you check out a local branch from a remote branch, a tracking branch is created automatically:

git checkout local_branch1 remote_rep/branch1

If you want to use the same name as the tracked branched you can use

git checkout --track remote_rep/branch1

See also: