我想教我的双手使用新的
git switch
git restore
git checkout
.bashrc 函数
git() { if [[ "$1" = checkout ]]; then echo 'Use switch or restore!' >&2 return 1 fi command git "$@" }