How to :
- find out commit ID of the root
- use git filter-branch using –parent-filter and a sed command that snips off that parent.
git filter-branch --parent-filter "sed 's/-p <the_commit>//'" HEAD
Notes: all files on old root commit will be moved to new root commit.
Source: https://stackoverflow.com/questions/6149520/git-remove-root-commit
comments powered by Disqus