Re:Little Things I Like to Do with Git
by danellis on Wednesday May 24, 2017 @11:17AM
(#14410611)
How much time does that actually save? I find that for any given task, I spend far more time reading and thinking than I do typing, and of the time spent typing, most of it is spent typing arguments.
[ Parent
| on HN ]
I use `git diff` and `git log --graph --decorate --all --oneline` and `git status` so often, that it totally saves heaps of time. Especially the second one ― I usually type my `gl` somewhat subconsciously already; only afterwards I realize what I'm looking at, and start reading. That's possibly related to the fact that I commit very often, use many working branches, and then rebase -i (usually squashing and composing a good readable commit message) before publishing.
But anyway, if someone asks for help with "how to fix my mess in git", the absolutely first thing I do is exactly `git log --graph --decorate --all --oneline`, to start finding out visually what the mess actually is.
The shorter a command is, the fewer typos can be made. Many times have I typed `git stauts` or `git ocmmit`
Of course, my personal solution instead of aliases was to switch to using SourceTree.
Re:Little Things I Like to Do with Git
by herrvogel- on Wednesday May 24, 2017 @03:02PM
(#14412563)
I discovered https://github.com/nvbn/thefuck a while ago and now I kind of enjoy making typos like this.
For me, at least a day in 5 years: https://xkcd.com/1205/