Skip to main content

git fetch / pull remote branch

If you don't created that branch but want to follow and fetch:

git checkout --track origin/birtes_branch

Shortcut: If the branch name you’re trying to checkout locally doesn’t exist and exactly matches a name on only one remote, git will create a tracking branch for you:

git checkout birtes_branch

First look what branches exist local and remote:

git branch --list --all