Created
October 4, 2012 14:31
-
-
Save eltimn/3833887 to your computer and use it in GitHub Desktop.
My .gitconfig file
This file contains hidden or 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 = ******** | |
email = *********** | |
[alias] | |
au = add -u | |
br = branch | |
ci = commit | |
cia = commit --amend | |
co = checkout | |
df = diff | |
dff = diff --no-ext-diff | |
lg = log --pretty='tformat:%h %an (%ai): %s' --topo-order --graph | |
st = status | |
w = whatchanged | |
# given a string for an author, try to figure out full name and email: | |
whois = "!sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\n\" --author=\"$1\"' -" | |
# given any git object, try to show it briefly | |
whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short | |
# Search for a given string in all patches and print commit messages | |
# example: search for any commit that adds or removes string "foobar" | |
# git searchcommits foobar | |
# example: search commits for string "foobar" in directory src/lib | |
# git searchcommits foobar src/lib | |
# example: search commits for "foobar", print full diff of commit with 1 line context | |
# git searchcommits foobar --pickaxe-all -U1 src/lib | |
searchcommits = "!f() { query=\"$1\"; shift; git log -S\"$query\" \"$@\"; }; f \"$@\"" | |
[core] | |
editor = sublime-text-2 -w | |
[diff] | |
external = ~/bin/diff.py # launches meld with the proper args | |
[merge] | |
tool = meld | |
[color] | |
branch = auto | |
diff = auto | |
interactive = auto | |
status = auto | |
ui = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green | |
[color "status"] | |
added = yellow | |
changed = green | |
untracked = cyan | |
[github] | |
user = ************ | |
token = ************ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment