2 ms·
Git log is probably the single git command I use most often. Stash can be useful, but it’s good to know that you can get by without it very easily, there’s not
by dahart 7y ago
Git log is probably the single git command I use most often.
Stash can be useful, but it’s good to know that you can get by without it very easily, there’s nothing you can do with stash that you can’t do with commits & branches, and stash doesn’t have the same safety mechanisms that commits have. I think the biggest git accidents I’ve seen, where people have gotten confused in the middle of a merge and lost their work, are due to using stash.
- panpanna 7y agoI prefer using "tig" for browsing the commit log. "git log" is just not usable in real world. Stash is something I try to avoid after multiple accidents.
- dahart 7y agoFull disclosure, I have a wrapper script to make git log output a lot more readable for me, it columnizes and shortens and colors the output. I’d agree the defaults are not amazing, and even with log’s many arcane options it’s very difficult to make it feel smooth.