Hacker News new | past | comments | ask | show | jobs | submit login
Minimalist Git (bengarvey.com)
5 points by bengarvey 11 months ago | hide | past | favorite | 2 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!




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: