Last active
December 22, 2017 10:08
-
-
Save kazu69/9340353 to your computer and use it in GitHub Desktop.
git rebase -i --root
This file contains hidden or 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 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^ |
This file contains hidden or 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 | |
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