Git - remove commits with empty changeset using filter-branch -


How do I make a change by using git filter-branch that removes the commit?

I use my GIT history:

  GIT filter-branch - tray-filter 'rm -rf my_folder '-f HEAD   

It worked well, but now I have lots of commands with empty changes. I want to remove those commits, preferably in msysgit

Ribbing is not really an option because I have more than 4000 commitments and half of them should be removed.

Just add to the - pseudo-empty option: < Pre class = "lang-bash prettyprint-override"> git filter (and of course, if you have another rif, you want to rewrite everything. - --all Instead of just HEAD )

note that this - commit-filter ; In that case ,.

Comments