Git alias:
untrack = "!f(){ \ branch=$(git rev-parse --abbrev-ref HEAD); \ cmd=\"git branch --unset-upstream ${1:-$branch}\"; \ echo $cmd; \ $cmd; \ }; f"
Example:
git untrack
Compare git track.