4 ms·
My favorite alias is `git out`, which just lists all unpushed commits. I use it all the time. [alias] out = "log @{u}.." In my head I always hear it in
by jelder 2y ago
My favorite alias is `git out`, which just lists all unpushed commits. I use it all the time.
[alias]
out = "log @{u}.."
In my head I always hear it in the voice of The Terminator: https://youtu.be/8cdC1Y5oRFg?t=54 https://youtu.be/8cdC1Y5oRFg?t=54
- schacon 2y agoI should do another article on the best aliases, because this is a great one. I want it just because I want to do the Arnold voice every time. Now I want to do: `git to-da-choppa`
- theshrike79 2y agoThat could be just git add . && git commit -a -m "git to da choppa" && git push --force For when you need to Get to da choppa and don't have time to clean up =)
- sandreas 2y agoI use `qp`for `quick-push` with a function to provide a comment: # git alias qp = "!f() { git add . && git commit -m \"$1\" && git push; }; f" # usage git qp "whatever your comment is"
- JohnKemeny 2y agoI almost never want to do `git add .`. I find `git add -u` to be better; it only stages known files.
- sedatk 2y agoThat comes out of the box with Mercurial. (`hg out` or `hg outgoing`).