I want to jump to a previous commit with the ability to jump out of it at anytime, not affecting my repo. What would I use to do this in git?
Thanks!
You'd have to commit or stash your working tree changes, but you can
git checkout <sha1 of previous commit>
This can be done with git checkout. But I recommend reading a book about git which explains how you can use git. Progit is a good and free online book.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With