Hacker News new | ask | show | jobs
Minimalist Git (bengarvey.com)
5 points by bengarvey 856 days ago
1 comments

Good list. I would add git stash as well. I use it frequently, especially when I need to hop over to another branch for a review. I recently learned that you can save more than one stash as well, but that probably falls in the category of “excessively advanced git features that will land you in trouble”.

I also use git diff in conjunction with git status, mainly as a sanity check, and also so I don’t have to switch to a different UI just to see which lines changed in a file.

And then one more I like is git log —oneline, once again mainly for a sanity check.

I use diff and log frequently, but I usually don't NEED to and it's not part of my normal workflow.

I ignore stash completely by committing with -a and simply not worrying about the commit history so much, since they'll all be squashed anyway.

Never used the --oneline option before and I LOVE it. Thanks!