1

I'm trying to undo a commit and duplicate the commit, but when I use

git reset --soft HEAD^ 

(as it was explained to me) it appears this question: More? When it was being explained to me, the More? statement wasn't mentioned. What does this means? Do I have to add something else to undo my commit?

parik
  • 2,313
  • 12
  • 39
  • 67
cyber_angel
  • 163
  • 1
  • 12

1 Answers1

0

Try below mentioned:

git reset --soft HEAD~3

The last three commits (HEAD, HEAD^, and HEAD~2) were bad and you do not want to ever see them again. Do not do this if you have already given these commits to somebody else.

Jishnunand P K
  • 145
  • 1
  • 8