A better git log
coderwall.com
coderwall.com
"Tig is a git repository browser that additionally can act as a pager for output from various git commands."
It happens all over github. Even UI projects fall prey to this problem, which is especially egregious. I want to grab these project owners by the shoulders, shake them, and yell DON'T YOU WANT ME TO USE YOUR PROJECT? THEN SHOW ME WTF IT DOES!!
Source: https://github.com/mitsuhiko/dotfiles/blob/master/git/gitcon...
https://gist.github.com/fishman/091d32da731c8b841c94
EDIT: I either already did many many moons ago, or we would had the same master :p
git status --short
times, thanks [alias]
lt = log --graph --pretty=changes
[pretty]
changes = format:%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset
It's nice to be able to separate the format specifier from the alias itself. Makes the configuration a lot cleaner.1. Graph showing commits on all branches, decorated with branch and tag names, short commit hashes, committer name and commit comment:
git log --graph --all --abbrev-commit --pretty=format:'%C(red)%d%x20%C(yellow)%h%x20%C(green)%an%x20%Creset%s'
2. List commits in HEAD that aren't in master: git log --abbrev-commit --pretty=format:'%C(yellow)%h%x20%C(green)%an%x20%Creset%s' master..HEAD git log HEAD --not master
or the shorthand git log HEAD ^master git log --graph --all --abbrev-commit --pretty=format:'%d%x20%h%x20%an%x20%s'
git log --abbrev-commit --pretty=format:'%h%x20%an%x20%s' master..HEAD git log --stat git log --stat
git log --numstat
git log --name-only
These flags can be passed to most git commands which show revisions, including diff and show.By one line per commit, I mean something along the lines of:
56c6861 - add reflist (4 months ago: joe) Joe/Manu.bbl Joe/Manu.bib Joe/Manu.bst ...
5ed70cc - (origin/master) add tests; change .gitignore (5 months ago: cas) ./.gitignore test/integ.lua test/refs ...
d3c5de1 - replace Manifest; add converter (5 months ago: cas) ./Manifest maked/tex2html.lua maked/tex2html.cfgAs noted below, tig is well worth the install for getting around your logs/diffs on the command line.
glg='git log --pretty=format:'\''%Cred%h%Creset%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset'\'' --abbrev-commit --date=relative'Which is almost the same as mentioned in this post.
The only problem is that this breaks git tabcomp. Haave you (or anyone else) dealt with this?
> git co > git st > git ci
Really??
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %C(bold white)%s%Creset %Cgreen(%cr) %C(blue)@%an%Creset' --abbrev-commit --date=relative
tig is neat, i need to port it
Additionally, the discussions that this post created here in the comments have already given me three new aliases that I didn't know we're possible.