Skip to content

Instantly share code, notes, and snippets.

@ashumeow
Last active December 27, 2015 11:49
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 ashumeow/7321316 to your computer and use it in GitHub Desktop.
Save ashumeow/7321316 to your computer and use it in GitHub Desktop.
Aiming to use interactive option for rebase (.git) I am not getting success after the final statement $ git rebase -i HEAD~3 #Help
//start
$ git status
$ git commit -m "aaa"
$ git commit -m "bbb"
$ git commit -m "ccc"
$ git commit -m "ddd"
#Commit process done
$ git branch
#one branch master was available
$ git log --oneline
#Master branch log
$ git checkout -b unicorns
# So, i created a new unicorns branch
$ git rebase master
$ git checkout -b unicorns
$ git rebase master
$ git checkout -b unicorns
$ git rebase master
$ git checkout -b unicorns
$ git rebase master
$ git checkout -b unicorns
$ git rebase master
$ git checkout -b unicorns
$ git rebase master
$ git rebase -i HEAD~3 //Final line
# Not getting success
# Error message: You incorrectly specified which commits to edit. You wanted to specify the last four commits starting with HEAD.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment