Skip to content

Instantly share code, notes, and snippets.

@nobitagit
Last active January 18, 2017 18:02
Show Gist options
  • Save nobitagit/e5ab45bd0564761c0f2e to your computer and use it in GitHub Desktop.
Save nobitagit/e5ab45bd0564761c0f2e to your computer and use it in GitHub Desktop.
My ~/.gitconfig aliases
# my ~/.gitconfig aliases
[alias]
st = status
ci = commit
co = checkout
br = branch
lol = log --oneline
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
doh = reset --soft HEAD~1
# show the branches sorted by modified date (older to recent)
# to reverse it just "git brr | tail -r"
brr = for-each-ref --sort='-authordate:iso8601' --format=' %(authordate:relative)%09%(refname:short)' refs/heads
[user]
name =
email =
[core]
excludesfile = /Users/nobitagit/.gitignore_global
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[commit]
# template = /Users/nobitagit/.stCommitMsg
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment