0

In my project I have been committing several times throughout history, I would like to know how I can run one of these versions. Here are the versions

1 Answers1

0
git checkout <commit sha>

Where commit sha of a previous commit in your example is 4c95c0

If git complains about uncommited changes, commit them before checking out another commit with the above command.

If you don't want to keep uncommited changes you can run the following command:

git reset --hard <commit sha>

For more details, refer to this answer

Alex M
  • 690
  • 4
  • 18