Skip to content

Instantly share code, notes, and snippets.

View ilmax's full-sized avatar
🚀

Massimiliano Donini ilmax

🚀
View GitHub Profile
@ilmax
ilmax / git-stop-tracking-remote-branch.md
Created June 14, 2016 13:01 — forked from magnusbae/git-stop-tracking-remote-branch.md
How to make Git stop track a remote branch without deleting the remote branch.

You don't have to delete your local branch.

Simply delete your remote tracking branch:

git branch -d -r origin/<remote branch name> (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.