Skip to content

Instantly share code, notes, and snippets.

@kazu69
Last active December 22, 2017 10:08
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kazu69/9340353 to your computer and use it in GitHub Desktop.
Save kazu69/9340353 to your computer and use it in GitHub Desktop.
git rebase -i --root
git init
Initialized empty Git repository in /DIR/.git/
touch a.txt
git add -A
git ci -m "initial commit"
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 a.txt
git rebase -i HEAD^
fatal: Needed a single revision
invalid upstream HEAD^
git rebase -i --root
Successfully rebased and updated refs/heads/master.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment