Last active
May 4, 2018 13:12
-
-
Save 4383/c932dcef79e2b09b8f97a76ccdeb8bd4 to your computer and use it in GitHub Desktop.
Git rebase the root commit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rebase -i --root | |
# edit on the root commit | |
git commit --amend --no-edit # per example | |
# or change the commit date | |
git commit --amend --date="Wed Feb 16 14:00 2011 +0100" | |
# or change the commit author | |
git commit --amend --author="Hervé Beraud" | |
git rebase --continue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment