Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I run git rebase -i a lot more often because I like to reword a bunch of commits to make the commit messages clearer just before pushing.

And git reflog is indispensable for fixing things.

And I'm surprised you didn't mention git diff. I do that all the time to compare things, like having a single diff of all commits between the origin diff base and current HEAD. Also useful for summarizing changes of entire feature branches.

Git is like C++. People learn and use a different subset of it and everyone claims their own chosen subset is powerful enough and entirely sufficient for everyone.




Darn I actually missed git diff. I haven't been using a bash history so I don't have something check against. I'm confident now it's complete tho.

Rebase -i is a lot to fun, I ought to practice it more. Haven't had to use reflog yet, but I'll be expecting it now thanks~




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: