Skip to content

Latest commit

 

History

History

git-untrack

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

git untrack

Stop tracking a branch, with default parameters, and show the command

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.