What does git filter-branch
with no arguments do?
I ran this on my repo accidentally hitting enter prematurely.
Filter-branch inspects and does any needed rewriting of the commits output by a git rev-list
fed the arguments it passes along. With no arguments to pass along, rev-list uses HEAD, your current checkout.
Along with any modifications you specify on the command line, filter-branch also bakes in local overrides from .git/info/grafts
and git replace
.
So to orphan the current checkout you can git rev-parse @ >.git/info/grafts; git filter-branch