From: Matěj Cepl Date: Mon, 02 Dec 2024 12:50:27 GMT Subject: Re: How to revert to a specific commit? Message-ID: In-Reply-To: On Mon Dec 2, 2024 at 12:40 PM CET, tao lv wrote: > I don't want to revert each individual commit; I just want to restore > the code to this specific commit while retaining all the current > history commits. Either git checkout for an inspection or git reset --hard for change of the current branch to that commit. Matěj -- http://matej.ceplovi.cz/blog/, @mcepl@floss.social GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8 Books aren’t written - they’re rewritten. Including your own. It is one of the hardest things to accept, especially after the seventh rewrite hasn’t quite done it. -- Michael Crichton, alluding to Steele MacKaye (1889) article where he said this about theater plays.