Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 344 Bytes

index.md

File metadata and controls

22 lines (16 loc) · 344 Bytes

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.