-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
  • 11,764
  • 9
  • 74
  • 137

1 Answers1

1

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

Andreas Louv
  • 46,145
  • 13
  • 104
  • 123