Last active
January 18, 2017 18:02
-
-
Save nobitagit/e5ab45bd0564761c0f2e to your computer and use it in GitHub Desktop.
My ~/.gitconfig aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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