How do you stop tracking a remote branch in Git?

As mentioned in Yoshua Wuyts‘ answer, using git branch: git branch –unset-upstream Other options: You don’t have to delete your local branch. Simply delete the local branch that is tracking the remote branch: git branch -d -r origin/<remote branch name> -r, –remotes tells git to delete the remote-tracking branch (i.e., delete the branch set to … Read more

git submodule tracking latest

Edit (2020.12.28): GitHub change default master branch to main branch since October 2020. See https://github.com/github/renaming This answer below still reflect the old naming convention. Update March 2013 Git 1.8.2 added the possibility to track branches. “git submodule” started learning a new mode to integrate with the tip of the remote branch (as opposed to integrating … Read more