差别
这里会显示出您选择的修订版和当前版本之间的差别。
后一修订版 | 前一修订版 | ||
tech:op:git:tips [2017/03/31 01:40:35] 某喵 创建 |
tech:op:git:tips [2018/05/10 16:04:54] (当前版本) |
||
---|---|---|---|
行 1: | 行 1: | ||
- | <markdown> | ||
# Git Useful Tips | # Git Useful Tips | ||
行 7: | 行 6: | ||
``` | ``` | ||
- | </markdown> | + | ## 从历史记录中删除文件 |
+ | ``` | ||
+ | git filter-branch \ | ||
+ | --force \ | ||
+ | --prune-empty \ | ||
+ | --index-filter \ | ||
+ | 'git rm --cached --ignore-unmatch grav/grav-admin-v1.1.17.tar.gz' \ | ||
+ | --tag-name-filter cat -- --all | ||
+ | |||
+ | git@git.panezhang.cn:docker/kitty | ||
+ | ``` | ||
+ | |||
+ | - http://www.cnblogs.com/shines77/p/3460274.html | ||
+ | - http://harttle.com/2016/03/22/purge-large-files-in-gitrepo.html |