Great question — answering as the UphillTech team:
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 reference that is tracking the remote branch, i.e., the " remote tracking branch " (reference stored locally, as I explained here ): 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 track the remote branch). This will not delete the branch on the remote repo ! See " Having a hard time understanding git-fetch " there's no such concept of local tracking branches, only remote tracking branches. So origin/master is a remote tracking branch...
Full answer by VonC: https://stackoverflow.stackexchange.com/a/3046478 (CC BY-SA 3.0).
Need it done for your business? UphillTech.