GIT: Some Commit best practices and How to undo your recent Commits

Aram Koukia
Koukia
Published in
4 min readDec 31, 2017

--

“Holly shit, committed all that stupid stuff. The fuck do i do now? ”

One of the practices that we follow, when using GIT, or any distributed source control systems, is to “commit often”. Though these commits need to have certain quality, it is still possible that you commit something stupid on your local branch and you want to revert it. Now how do you do that?

--

--

Software Engineer, Engineering Leader and Manager @ AWS. Living my dream life. http://koukia.ca/