Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save page2me/4fca343054f768e890a67689694abc61 to your computer and use it in GitHub Desktop.
Save page2me/4fca343054f768e890a67689694abc61 to your computer and use it in GitHub Desktop.

Revisions

  1. Kowit Charoenratchatabhan created this gist Sep 12, 2018.
    37 changes: 37 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,37 @@
    [user]
    name = Kowito
    email = [email protected]
    [core]
    excludesfile = ~/.gitignore
    autocrlf = input
    editor = vim
    excludesfile = /Users/kowito/.gitignore_global
    [color]
    ui = auto
    interactive = auto
    [alias]
    st = status
    ci = commit
    co = checkout
    staged = "diff --cached"
    oneline = "log --pretty=oneline"
    llog = log --date=local
    changes = diff --name-status -r
    lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
    log-graph = log --all --graph --decorate
    log-refs = log --all --graph --decorate --oneline --simplify-by-decoration --no-merges
    log-timeline = log --format='%h %an %ar - %s'
    log-local = log --oneline origin..HEAD
    log-fetched = log --oneline HEAD..origin/master
    [push]
    default = simple
    [include]
    path = ~/.gitconfig.local
    [mergetool "sourcetree"]
    cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
    trustExitCode = true
    [difftool "sourcetree"]
    cmd = opendiff \"$LOCAL\" \"$REMOTE\"
    path =
    [commit]
    template = /Users/kowito/.stCommitMsg