Sergio Xalambrí

Tutorial

Configure the tracking branch in Git

If, for some reason, Git stop considering your local branch the same as branch with a similar name in GitHub or another remote, you can configure the tracking branch with a single command

git branch --set-upstream-to=origin/<branch> <branch>

Replace <branch> with your branch name (usually the same in the origin and local) and that's it.

Do you like my content?

Your sponsorship helps me create more tutorials, articles, and open-source tools.

Sponsor me on GitHub