News for hackers. Stuff that matters.
Re:Git Undo by komali2 on Thursday August 25, 2016 @11:42AM (#12359920)
Technically the same metaphor can be used for "commit" if we assume you stage the one thing and commit that one thing. Now look through the same workflow again but replace "stage" with "stage it and commit it."
Re:Git Undo by agentgt on Thursday August 25, 2016 @11:51AM (#12360002)
You can also use shelve in mercurial. I have never needed to use it on git though because of staging/cheap branches.