Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Git revert back to a certain commit

I want to revert my code back to a certain commit. I do not want the changes to stay either.
This is the commit id which I want to go back to.

a7f9f64c2df1b6133656955f9049d68d6e8cd261

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

This code will permanently undo all your changes after this commit.

git reset --hard a7f9f64c2df1b6133656955f9049d68d6e8cd261

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading