Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 319 Bytes

appendix1.md

File metadata and controls

15 lines (10 loc) · 319 Bytes

自动化小脚本

删除不在远程分支的分支

 git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done

复制文件

功能比cp强大

rsync -av --progress sourcefolder /destinationfolder --exclude thefoldertoexclude