-
-
Save iamntz/5af9e8c2f3197e993882 to your computer and use it in GitHub Desktop.
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 = Your Name | |
email = your@email | |
[core] | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
filemode = false | |
autocrlf = true | |
safecrlf = false | |
preloadindex = true | |
fscache = true | |
[alias] | |
ad = add . | |
a = add . | |
co = checkout | |
ci = commit -a | |
st = status | |
br = branch | |
df = diff | |
lg = log -p | |
lol = log --graph --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %s %C(black bold)- %an %Cgreen(%cr)%Creset' --abbrev-commit --date=relative | |
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all | |
ls = ls-files | |
f = fetch --all | |
u = pull | |
um = pull origin master | |
p = push --progress | |
po = push origin --progress | |
pm = push origin master --progress | |
mg = merge --no-ff | |
sub = submodule update --init --recursive | |
hash = rev-parse --short HEAD | |
longhash = rev-parse --long HEAD | |
curbranch = !git branch | grep \"*\" | sed \"s/* //\" | |
zip = !HASH=$(git hash) && BRANCH=$(git curbranch) && git archive --format zip --output $BRANCH-$HASH.zip master | |
ignore = !([ ! -e .gitignore ] && touch .gitignore) | echo $1 >>.gitignore | |
la = !git config -l | grep alias | cut -c 7- | |
pu = !git push origin $(git curbranch) --progress | |
pp = !git pull origin $(git curbranch) | |
up = !git remote update -p; git merge --ff-only @{u} | |
release = !git co master && git mg develop && git co develop | |
gra = "!f() { A=$(pwd) && TOPLEVEL=$(git rev-parse --show-toplevel) && cd $TOPLEVEL && git grep --full-name -In $1 | xargs -I{} echo $TOPLEVEL/{} && cd $A; }; f" | |
[color] | |
ui = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green | |
[color "diff"] | |
meta = yellow bold | |
frag = magenta bold | |
old = red bold | |
new = green bold | |
[color "status"] | |
added = yellow | |
changed = green | |
untracked = cyan | |
[color "diff"] | |
whitespace = red reverse | |
[pager] | |
color = true | |
[status] | |
color = auto | |
[diff] | |
color = auto | |
rename = copy | |
[gui] | |
encoding = utf-8 | |
[mergetool] | |
keepBackup = true | |
[push] | |
default = simple | |
[branch] | |
autosetuprebase = always | |
[i18n] | |
filesEncoding = utf-8 | |
[pull] | |
default = current | |
ff = only | |
[gitflow "branch"] | |
develop = dev | |
[gc] | |
auto = 256 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment