4 ms·
I also recommend an alias like this (and l5870uoo9y has other examples and how to set them as git aliases) alias gitlg="git log --graph --all --format=format
by leetrout 2y ago
I also recommend an alias like this (and l5870uoo9y has other examples and how to set them as git aliases)
alias gitlg="git log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(bold white)— %an%C(reset)' --abbrev-commit"
From http://stackoverflow.com/questions/1057564/pretty-git-branch-graphs http://stackoverflow.com/questions/1057564/pretty-git-branch...
- TomK32 2y agotig is a really nice tool for a very similar view https://jonas.github.io/tig/ https://jonas.github.io/tig/
- deleted 2y ago[deleted]
- petepete 2y agoI use tig for staging individual lines and hunks. Haven't found a faster or easier way in more than a decade. Such an underrated program.
- rgoulter 2y agoTig looks like a wonderful tool for all kinds of git interaction. I'm not too familiar with tig, but it looks like it does a lot of what Emacs' magit does. AFAICT, there are some things I find useful in magit that tig doesn't have: e.g. magit allows for committing/amending/rewording with just a few strokes; afaict, tig doesn't support the equivalent out of the box. e.g. in magit's status view, you'll get to see the diff for each change alongside the status entry. (Whereas tig limits itself to one view at a time; and viewing the diff is a different view than the status view).
- arunix 2y agoThere's also lazygit which does have features like this https://github.com/jesseduffield/lazygit https://github.com/jesseduffield/lazygit
- petepete 2y agoTig is simple by design and it has some features I find useful that magit doesn't have. 1. starts instantly 2. requires no plugins or config (or an entire editor/os!) 3. available in every distro's repo 4. lets me stage and unstage lines or hunks with 1 key