Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
git reflog isn't just handy. It proves that it is really really hard to break your repo. 😉
Got me out of trouble more than once! -
djlazz313695yYou should also try for bisect when you don't know what commit introduced a bug, but you know a clean commit some long time ago :)
-
@jesustricks cherry-pick is also really handy when you accidentally commit something in detached state. And that can happen with submodules quite often.
Other really important commands are
* rebase -i
* commit --patch
* bisect
* format-patch
* am
and last but not least the "-X" option when merging or rebasing. (Just remember that "ours" and "theirs" mean the opposite thing when rebasing.)
Related Rants
-
nottoobright111st Hackathon. 1st Prize. Really happy with this team effort :)
-
mtbrmr7!rant At my last job, my boss would constantly tear my work apart, belittle me and patronise me. He didn't re...
-
devTea0Not really a bug, but once I tried to learn building function ajax per table asynchronously instead of calling...
Just learned git reflog, WHERE HAS THIS BEEN IN MY LIFE?
random
feelsgoodman