github - How to clean up obsolete rewritten commits in git after a git-filter-branch -


i needed remove couple of obsolete files git history, followed approach of using "git filter-branch ..." suggested in various questions , in git manual. after running command, see rewritten commits in "git log", instead of original 10 commits, have around 30 commits (after removing 3 files).

i tried suggestions provided in various answers remove ".git/refs/originals" , "git reflog expire..." , "git gc --aggressive --prune" etc. still have 30 commits. tried suggestion of cloning repository new one, , new 1 has 30 commits well. pushed github , has 30 commits.

is there missing rid of overwritten commits (without doing rebase operation). goal rid of "duplicate" commits, not squash commits.

thanks!

exactly commands did run? it's best make fresh clone of repo , try again. there guide on help.github might help.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -