-1

Is there anyway to delete/undo like the last 5 commits? I have an issue that is too muddled up to fix so I would rather go back to a commit that i know is stable

umläute
  • 26,106
  • 8
  • 56
  • 114
BranOIE
  • 330
  • 1
  • 13

1 Answers1

2

Issue this command:

git reset --soft HEAD~6

If you want to loose changes:

git reset --hard HEAD~6
Antonio Petricca
  • 6,313
  • 5
  • 28
  • 63