How to 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.