TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

'git lg' instead of the default 'git log'

55 pointsby fksabout 11 years ago

18 comments

taericabout 11 years ago
The visualization of branches becomes nigh pointless when you have a lot of disjoint developers in a codebase. Otherwise, I used to have this same setup.
评论 #7293715 未加载
coherentponyabout 11 years ago
&gt; Beautiful, isn’t it?<p>With that transparent terminal? No. There&#x27;s a massive distraction behind it.
cgoreabout 11 years ago
Emacs Magit Mode:<p>[F2] g l l<p><a href="http://www.emacswiki.org/emacs/Magit" rel="nofollow">http:&#x2F;&#x2F;www.emacswiki.org&#x2F;emacs&#x2F;Magit</a>
chimeracoderabout 11 years ago
This is a rather linkbait-y title. &quot;git log is so 2005... git log is where it&#x27;s at!&quot;<p>I actually thought that this was originally going to be an overview of tig[0] which has completely replaced git log for me.<p>[0] <a href="https://blogs.atlassian.com/2013/05/git-tig/" rel="nofollow">https:&#x2F;&#x2F;blogs.atlassian.com&#x2F;2013&#x2F;05&#x2F;git-tig&#x2F;</a>
评论 #7293652 未加载
bilalqabout 11 years ago
I find git aliases to be essential. Things just become too unwieldy without them.<p>This is what my .gitconfig looks like right now: <a href="https://github.com/bilalq/dotfiles/blob/master/git/gitconfig" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bilalq&#x2F;dotfiles&#x2F;blob&#x2F;master&#x2F;git&#x2F;gitconfig</a>
sergiotapiaabout 11 years ago
Terminal to modify repository data, SourceTree (or whatever GUI you want) to get your bearings. ;)<p>I hardly ever use git log anymore since SourceTree lets me know very easily who commited when, when and from what branch. What&#x27;s not to love?
simiasabout 11 years ago
The --graph option is nice and cool looking but it gets incredibly slow with big repositories like the linux kernel, so I still use good old &quot;git log&quot; for that reason.
tzakrajsabout 11 years ago
&quot;Whether you love terminal customization or feel more Rand Paul with your ‘.bash_profile’, this tip will change your life.&quot;<p>wat?
dvdtabout 11 years ago
I can&#x27;t remember the last time I ran &#x27;git log.&#x27;<p>Rather, I use tig to get a quick glance at commit history and staged &#x2F; unstaged changes.<p>Can someone explain the relative upsides and downsides to using tig vs git lg?
评论 #7293729 未加载
dwbabout 11 years ago
I&#x27;ve tried these prettified `git log`s, but I always go back to the default: I prefer having the whitespace and everything being on a consistent column, instead of dancing all over the shop. But that&#x27;s just me.
BadassFractalabout 11 years ago
Git lol and git lola have been used for years, this is kind of a rehash of that.
jtsnowabout 11 years ago
Also see <a href="https://news.ycombinator.com/item?id=4130494" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=4130494</a>, from 2012.
hergeabout 11 years ago
It ain&#x27;t pretty, but gitk will pop up a tkinter view on your current repo, with a graph and the ability to cherry-pick commits with the mouse.
Daegalusabout 11 years ago
<a href="http://alias.sh" rel="nofollow">http:&#x2F;&#x2F;alias.sh</a><p>has had these for a long time. both git lg and git gl
hybrid11about 11 years ago
Saw this yesterday on Reddit, and been using it since, great improvement if you use command line git!
mamcxabout 11 years ago
Something like this for mercurial?
评论 #7293600 未加载
评论 #7295965 未加载
评论 #7293591 未加载
Estragonabout 11 years ago
You get this for free if you use magit
ayiabout 11 years ago
The title is so link-bait.