Skip to content

Instantly share code, notes, and snippets.

@4383
Last active May 4, 2018 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4383/c932dcef79e2b09b8f97a76ccdeb8bd4 to your computer and use it in GitHub Desktop.
Save 4383/c932dcef79e2b09b8f97a76ccdeb8bd4 to your computer and use it in GitHub Desktop.
Git rebase the root commit
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