5 ms·
I only used git GUIs for nice graphs, but now I have this in my ~/.gitconfig: [alias] graph = log --graph --all --pretty=format:'[%h] %s (%ar)' an
by dchest 16y ago
I only used git GUIs for nice graphs, but now I have this in my ~/.gitconfig:
[alias]
graph = log --graph --all --pretty=format:'[%h] %s (%ar)'
and typing "git graph" gives me a nice text-only graph with short commit messages: http://i.imgur.com/pXfWD.png http://i.imgur.com/pXfWD.png
- ilikepi 16y agoFor the same reason I have something similar, though it also includes '--decorate' for colorization of refs.
- mathias_10gen 16y agoYou may want to try tig (http://gitready.com/advanced/2009/07/31/tig-the-ncurses-front-end-to-git.html http://gitready.com/advanced/2009/07/31/tig-the-ncurses-fron...). The main view has the same info (may have to hit g to see the graph), plus it lets you drill down into each commit. All without leaving the comfort of your terminal.
- dchest 16y agoThanks! I've tried tig, but forgot about it.
- zacharypinter 16y agoI like tig, but my main use for a git gui is to manage my set of staged files (when I'm not adding everything), and for some reason tig doesn't let me discard untracked files (I can either add them or leave them untracked). Anybody know a workaround? I suppose I should figure out how to patch it and send a pull request.