-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

Antonio Petricca
  • 8,891
  • 5
  • 36
  • 74
BranOIE
  • 400
  • 4
  • 19

1 Answers1

2

Issue this command:

git reset --soft HEAD~6

If you want to loose changes:

git reset --hard HEAD~6
Antonio Petricca
  • 8,891
  • 5
  • 36
  • 74