News for hackers. Stuff that matters.
Re:A better git log by ngkabra on Tuesday June 19, 2012 @02:53AM (#4130573)
I find myself using these aliases regularly:

    df = diff --color --color-words --abbrev
    st = status -s
    l = log --graph --pretty=oneline --abbrev-commig --decorate
There are a lot more at this stackoverflow thread: http://superuser.com/questions/169695/what-are-your-favorite...
Re:A better git log by mappu on Tuesday June 19, 2012 @03:27AM (#4130654)
`git df' sounds like it should tell me how much space is free on all remote mirrors of the repo.

Is there a `git du' ?

Re:A better git log by Zr40 on Tuesday June 19, 2012 @04:14AM (#4130770)
Yes, there is: du .git
Re:A better git log by pbiggar on Tuesday June 19, 2012 @11:16AM (#4132235)
Is there anyway to get the short git status but still get the output that says "Your branch is ahead of 'origin/master' by 6 commits."
Re:A better git log by gemma on Tuesday June 19, 2012 @11:58AM (#4132504)
status -sb
Re:A better git log by pbiggar on Tuesday June 19, 2012 @12:46PM (#4132764)
Awesome thanks!
Re:A better git log by pyre on Tuesday June 19, 2012 @06:03AM (#4131019)
From my .gitconfig:

    # --- LOGS ---
    ll   = "log --pretty=oneline --abbrev-commit"
    lg   = log --pretty=oneline --abbrev-commit --graph --decorate --date=relative
    lgt  = log --graph --pretty=format:'%Cred%h%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
    lgtt = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
I almost never user "git lgt" or "git lgtt." Instead I mostly use "git ll", and sometimes "git lg", though if you're doing a lot of merging around, the graph can get a bit convoluted.
Re:A better git log by keporahg on Tuesday June 19, 2012 @11:58AM (#4132501)
Is there a way to make the filenames in a 'git diff' stand out/coloured? I always have trouble figuring out where one file's diff ends and the next one begins.
Re:A better git log by AncientPC on Tuesday June 19, 2012 @04:02PM (#4133839)

  git diff --color
Or modify ~.gitconfig:

  [color]
  diff = auto

  [color "diff"]
    meta = yellow bold
    frag = magenta bold
    old = red bold
    new = green bold
Re:A better git log by gemma on Tuesday June 19, 2012 @09:06PM (#4135124)
My favorite: git diff --color-words=.
Re:A better git log by keporahg on Tuesday June 19, 2012 @10:13PM (#4135303)
What's the difference between 'git diff --color-words' and what you posted?