附录1
March 8, 2020 · View on GitHub
删除不在远程分支的分支
git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print \$1}'`; do git branch -D $branch; done
其他分支清理脚本
https://gist.github.com/StuPig/06736fbdeede11001aff
复制文件
功能比cp强大
rsync -av --progress sourcefolder /destinationfolder --exclude thefoldertoexclude
discard all changes【Git】
git checkout . && git clean -xdf