Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 470 Bytes

appendix1.md

File metadata and controls

26 lines (16 loc) · 470 Bytes

附录1

删除不在远程分支的分支

 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