- On a Mac, we might need to run first:
git config --global core.trustctime false
- Rebase:
git rebase -i --root
- Edit according to instructions
- Set commit date as author date:
git filter-branch -f --env-filter 'GIT_COMMITTER_DATE=$GIT_AUTHOR_DATE; export GIT_COMMITTER_DATE'
- Force push:
git push origin +master
- In case of errors:
git rebase --abort
Change git history comprehensively
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment