Created
June 16, 2015 08:14
-
-
Save TakWolf/3700db3c403fe2498d40 to your computer and use it in GitHub Desktop.
filter-branch.shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git filter-branch --tree-filter 'rm -f LICENSE' --prune-empty HEAD | |
// 删除git历史中的“LICENSE”文件, rm -f 表示强制删除,“--prune-empty”表示修改之后commit为空则删除这个commit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment