How To Safely Roll Back Your Repo To A Previous Commit Using GIT

Posted by Weston Ganger

There are a lot of complicated answers out there about how to do this. This is the best and easiest way I have seen to get this done. This will create only one commit that undoes the changes since then. This does not wreck the history or anything.


git revert --no-commit 1832h128..HEAD
git commit


Related External Links:

Article Topic:Software Development - Linux

Date:August 23, 2016

Recommended Posts

Contact

604-309-8713
info@solidfoundationwebdev.com

Send Me A Message

I would love to get in touch and talk about your next project. Feel free to send a message and I will get back to you shortly.

Get Connected