Last active
June 26, 2020 15:35
-
-
Save anettodev/be361df1c178c22dfdd9d639738cb636 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 = Antonio Netto | |
email = tonis.04@gmail.com | |
[core] | |
excludesfile = /Users/anetto/.gitignore_global | |
editor = atom | |
ignorecase = false | |
[web] | |
browser = google-chrome | |
[color] | |
ui = true | |
[color "branch"] | |
current = yellow bold | |
local = green bold | |
remote = cyan bold | |
[color "diff"] | |
meta = yellow bold | |
frag = magenta bold | |
old = red bold | |
new = green bold | |
whitespace = red reverse | |
[color "status"] | |
added = green bold | |
changed = yellow bold | |
untracked = red bold | |
[github] | |
user = acalbuquerque | |
[difftool "sourcetree"] | |
cmd = opendiff \"$LOCAL\" \"$REMOTE\" | |
[merge] | |
tool = opendiff | |
[mergetool "sourcetree"] | |
cmd = /Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\" | |
trustExitCode = true | |
[mergetool] | |
keepBackup = false | |
[credential] | |
helper = osxkeychain | |
[hub] | |
protocol = https | |
[help] | |
autocorrect = 1 | |
[alias] | |
mt = mergetool | |
undo = reset --hard | |
d = diff | |
s = status | |
lg = log -p | |
au = add -u # add changed files but not new ones. | |
graph = log --graph --pretty=oneline --abbrev-commit | |
# List commits in short form | |
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate | |
# List commits showing changed files | |
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat | |
le = log --oneline --decorate | |
# List Aliases | |
la = "!git config -l | grep alias | cut -c 7-" | |
plog = log --pretty=format:\"%h %Cblue%cr%Creset %cn %Cgreen%s%Creset\" | |
############# | |
pr = prune -v | |
############# | |
############# | |
sub-update = "!git submodule update --init --recursive --remote" | |
checkouts = "!sh -c \"git submodule foreach --recursive 'git checkout $1'\"" | |
pulls = "!sh -c \"git submodule foreach --recursive 'sleep 2 && git pull origin $1'\"" | |
devs = "!git submodule foreach --recursive 'git checkout dev'" | |
masters = "!git submodule foreach --recursive 'git checkout master && git pull || true'" | |
statuss = "!git submodule foreach --recursive git status" | |
pushs = "!git submodule foreach --recursive git push origin || true" | |
cleans = "!git submodule foreach --recursive 'git checkout . && git clean -df && git reset HEAD —-hard && git checkout master && git pull'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment