Created
November 13, 2014 14:47
-
-
Save r351574nc3/92083bf5f8475035dc12 to your computer and use it in GitHub Desktop.
Global .gitconfig
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
[user] | |
name = r351574nc3 | |
email = r351574nc3 [at] gmail.com | |
signingkey = 2DDF1261 | |
[push] | |
default = simple | |
editor = emacs | |
[alias] | |
ci = commit | |
st = status | |
br = branch | |
co = checkout | |
amend = commit --amend | |
remove-last = reset --soft HEAD~1 | |
remove-last-hard = reset --hard HEAD~1 | |
cloneurl = config --get remote.origin.url | |
# remove a file from index | |
unadd = git reset HEAD | |
# what tag contains the sha | |
whatrelease = name-rev --name-only | |
# what branch contains the sha | |
contains = branch --contains | |
# various pretty loggers from various places | |
log = log --show-signature | |
lg = log --graph --show-signature --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative | |
lc = log ORIG_HEAD.. --stat --no-merges | |
# from http://blog.kfish.org/2010/04/git-lola.html | |
lol = log --graph --show-signature --decorate --pretty=oneline --abbrev-commit | |
lola = log --graph --show-signature --decorate --pretty=oneline --abbrev-commit --all | |
ll = log --graph --show-signature --date=short | |
# from https://git.wiki.kernel.org/index.php/Aliases | |
whois = "!sh -c 'git log -i -1 --show-signature --pretty=\"format:%an <%ae>\n\" --author=\"$1\"' -" | |
whatis = show -s --show-signature --pretty='tformat:%h (%s, %ad)' --date=short | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
interactive = auto | |
ui = auto | |
[branch] | |
autosetuprebase = always | |
[gc] | |
auto = 1 | |
[merge] | |
tool = emerge | |
[mergetool] | |
prompt = false | |
[diff] | |
tool = emerge | |
[difftool] | |
prompt = false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment