May. 21st, 2015

Git notes

May. 21st, 2015 03:50 pm
jbanana: Badly drawn banana (Default)
"Oh dear, I messed up that commit. I know it can be undone. I'll google it (again)..."
http://stackoverflow.com/questions/927358/how-to-undo-the-last-commit
As I write, that article has been viewed 2044004 times. About 5 of those were me.

What I was looking for every time is:
git reset --soft HEAD~1

I can't find a list of the most viewed questions, but I bet this one is on it.

July 2017

M T W T F S S
     12
3456789
10111213141516
17 181920212223
24 252627282930
31      

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 26th, 2017 04:33 am
Powered by Dreamwidth Studios