-1

I have three commits on my repo, I am trying to combine this commits. however, while trying to do that it shows following error.

Error: in valid upstream 'HEAD~3'

command used

git rebase -i HEAD~3

enter image description here

Gaurang Shah
  • 10,196
  • 4
  • 63
  • 109

1 Answers1

1

Use git rebase -i --root as "Initial commit" is your first commit.

Andreas Louv
  • 44,338
  • 13
  • 91
  • 116