Git remove tracking of remote branch

Sometimes you have a kinda messed up situation and need to remove the tracking of the remote branch.

This is configured in .git/config like this:

[branch “$a”]

remote = origin
merge = refs/heads/feature/$a

Just remove this full entry and git is not tracking the remote branch anymore.

Let me know if this tip helped you in you probably dire situation.



Leave a Reply