Skip to content

Instantly share code, notes, and snippets.

@jamespantalones
Forked from brittharr/.gitconfig
Created October 25, 2017 20:43
Show Gist options
  • Save jamespantalones/792448a1dea1b976a2d9314a3d67c8e4 to your computer and use it in GitHub Desktop.
Save jamespantalones/792448a1dea1b976a2d9314a3d67c8e4 to your computer and use it in GitHub Desktop.

Revisions

  1. @brittharr brittharr revised this gist Oct 25, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    https://github.com/so-fancy/diff-so-fancy

    `npm install -g diff-so-fancy`

    https://github.com/git/git/tree/master/contrib/diff-highlight

    `curl https://raw.githubusercontent.com/git/git/master/contrib/diff-highlight/diff-highlight > ~/bin/diff-highlight && chmod +x ~/bin/diff-highlight`
  2. @brittharr brittharr created this gist Oct 25, 2017.
    34 changes: 34 additions & 0 deletions .gitconfig
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    [core]
    pager = diff-highlight | diff-so-fancy | less -r
    [alias]
    st = status
    ci = commit
    br = branch
    co = checkout
    unstage = reset HEAD --
    lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
    amend = commit --amend --no-edit
    pl = pull --rebase
    [color]
    ui = auto
    [color "status"]
    added = yellow
    changed = green
    untracked = cyan
    [push]
    default = simple
    followTags = true
    [credential]
    helper = osxkeychain
    [filter "media"]
    required = true
    clean = git media clean %f
    smudge = git media smudge %f
    [filter "lfs"]
    clean = git-lfs clean %f
    smudge = git-lfs smudge %f
    required = true
    [status]
    submodulesummary = 1
    [help]
    autocorrect = 1
    5 changes: 5 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    https://github.com/so-fancy/diff-so-fancy
    `npm install -g diff-so-fancy`

    https://github.com/git/git/tree/master/contrib/diff-highlight
    `curl https://raw.githubusercontent.com/git/git/master/contrib/diff-highlight/diff-highlight > ~/bin/diff-highlight && chmod +x ~/bin/diff-highlight`