Moved private info into env variables, cleanup
This commit is contained in:
parent
0ebab432d3
commit
9b316b6022
125
gitconfig
125
gitconfig
@ -1,3 +1,10 @@
|
|||||||
|
# set these tokens up in your env, such as ~/.secrets
|
||||||
|
[github]
|
||||||
|
user = $GITHUB_USER
|
||||||
|
token = $GITHUB_TOKEN
|
||||||
|
[user]
|
||||||
|
name = $GIT_USER
|
||||||
|
email = $GIT_EMAIL
|
||||||
[color]
|
[color]
|
||||||
ui = true
|
ui = true
|
||||||
[color "branch"]
|
[color "branch"]
|
||||||
@ -10,98 +17,86 @@
|
|||||||
old = red bold
|
old = red bold
|
||||||
new = green bold
|
new = green bold
|
||||||
[alias]
|
[alias]
|
||||||
d = diff # show unstaged changes
|
d = diff # show unstaged changes
|
||||||
dc = diff --cached # show staged changes
|
dc = diff --cached # show staged changes
|
||||||
last = diff HEAD^ # show last committed change
|
last = diff HEAD^ # show last committed change
|
||||||
unstage = reset HEAD # remove files from index (tracking)
|
unstage = reset HEAD # remove files from index (tracking)
|
||||||
uncommit = reset --soft HEAD^ # go back before last commit, with files in uncommitted state
|
uncommit = reset --soft HEAD^ # go back before last commit, with files in uncommitted state
|
||||||
chunkyadd = add --patch # stage commits chunk by chunk
|
chunkyadd = add --patch # stage commits chunk by chunk
|
||||||
filelog = log -u # show changes to a file
|
filelog = log -u # show changes to a file
|
||||||
amend = commit --amend
|
amend = commit --amend
|
||||||
ammend = commit --amend
|
ammend = commit --amend
|
||||||
mt = mergetool #fire up the merge tool
|
mt = mergetool #fire up the merge tool
|
||||||
|
|
||||||
addall = !sh -c 'git add . && git add -u'
|
addall = !sh -c 'git add . && git add -u'
|
||||||
|
|
||||||
# rebasing
|
# rebasing
|
||||||
rc = rebase --continue
|
rc = rebase --continue
|
||||||
rs = rebase --skip
|
rs = rebase --skip
|
||||||
|
|
||||||
# save some typing for common commands
|
|
||||||
ci = commit
|
|
||||||
co = checkout
|
|
||||||
b = branch -v
|
|
||||||
r = remote -v
|
|
||||||
t = tag -n
|
|
||||||
|
|
||||||
# create and switch to a new branch (mnemonic: "git new branch branchname...")
|
|
||||||
nb = checkout -b
|
|
||||||
|
|
||||||
stat = status
|
# save some typing for common commands
|
||||||
s = status
|
ci = commit
|
||||||
|
co = checkout
|
||||||
# stashing
|
b = branch -v
|
||||||
ss = stash
|
r = remote -v
|
||||||
sl = stash list
|
t = tag -n
|
||||||
sa = stash apply
|
|
||||||
sd = stash drop
|
|
||||||
|
|
||||||
# grab a change from a branch
|
# create and switch to a new branch (mnemonic: "git new branch branchname...")
|
||||||
cp = cherry-pick -x
|
nb = checkout -b
|
||||||
|
|
||||||
# move patch
|
stat = status
|
||||||
|
s = status
|
||||||
|
|
||||||
# nice logs
|
# stashing
|
||||||
changes = log --pretty=format:\"%h %cr %cn %Cgreen%s%Creset\" --name-status
|
ss = stash
|
||||||
short = log --pretty=format:\"%h %cr %cn %Cgreen%s%Creset\"
|
sl = stash list
|
||||||
changelog = log --pretty=format:\" * %s\"
|
sa = stash apply
|
||||||
shortnocolor = log --pretty=format:\"%h %cr %cn %s\"
|
sd = stash drop
|
||||||
|
|
||||||
# svn helpers
|
# grab a change from a branch
|
||||||
svnr = svn rebase
|
cp = cherry-pick -x
|
||||||
svnd = svn dcommit
|
|
||||||
svnl = svn log --oneline --show-commit
|
# move patch
|
||||||
|
|
||||||
|
# nice logs
|
||||||
|
changes = log --pretty=format:\"%h %cr %cn %Cgreen%s%Creset\" --name-status
|
||||||
|
short = log --pretty=format:\"%h %cr %cn %Cgreen%s%Creset\"
|
||||||
|
changelog = log --pretty=format:\" * %s\"
|
||||||
|
shortnocolor = log --pretty=format:\"%h %cr %cn %s\"
|
||||||
|
|
||||||
|
# svn helpers
|
||||||
|
svnr = svn rebase
|
||||||
|
svnd = svn dcommit
|
||||||
|
svnl = svn log --oneline --show-commit
|
||||||
|
|
||||||
drop = !sh -c 'git add . && git stash && git stash drop'
|
drop = !sh -c 'git add . && git stash && git stash drop'
|
||||||
grab = !sh -c 'git-grab.sh'
|
grab = !sh -c 'git-grab.sh'
|
||||||
[gc]
|
[gc]
|
||||||
# auto = 1
|
# auto = 1
|
||||||
[merge]
|
[merge]
|
||||||
summary = true
|
summary = true
|
||||||
verbosity = 1
|
verbosity = 1
|
||||||
[apply]
|
[apply]
|
||||||
whitespace = nowarn
|
whitespace = nowarn
|
||||||
[branch]
|
[branch]
|
||||||
autosetupmerge = true
|
autosetupmerge = true
|
||||||
[push]
|
[push]
|
||||||
# 'git push' will push the current branch to its tracking branch
|
# 'git push' will push the current branch to its tracking branch
|
||||||
# the usual default is to push all branches
|
# the usual default is to push all branches
|
||||||
default = tracking
|
default = tracking
|
||||||
[core]
|
[core]
|
||||||
autocrlf = false
|
autocrlf = false
|
||||||
editor = /usr/bin/vim
|
editor = /usr/bin/vim
|
||||||
excludesfile = ~/.dotfiles/gitignore_global
|
excludesfile = ~/.dotfiles/gitignore_global
|
||||||
|
|
||||||
[merge]
|
|
||||||
tool = threesome
|
|
||||||
|
|
||||||
[mergetool "threesome"]
|
|
||||||
cmd = "mvim -f $BASE $LOCAL $REMOTE $MERGED -c 'ThreesomeInit'"
|
|
||||||
trustExitCode = true
|
|
||||||
[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
|
|
||||||
[advice]
|
[advice]
|
||||||
statusHints = false
|
statusHints = false
|
||||||
[diff]
|
[diff]
|
||||||
# Git diff will use (i)ndex, (w)ork tree, (c)ommit and (o)bject
|
# Git diff will use (i)ndex, (w)ork tree, (c)ommit and (o)bject
|
||||||
# instead of a/b/c/d as prefixes for patches
|
# instead of a/b/c/d as prefixes for patches
|
||||||
mnemonicprefix = true
|
mnemonicprefix = true
|
||||||
|
|
||||||
[rerere]
|
[rerere]
|
||||||
# Remember my merges
|
# Remember my merges
|
||||||
# http://gitfu.wordpress.com/2008/04/20/git-rerere-rereremember-what-you-did-last-time/
|
# http://gitfu.wordpress.com/2008/04/20/git-rerere-rereremember-what-you-did-last-time/
|
||||||
enabled = true
|
enabled = true
|
||||||
|
Loading…
Reference in New Issue
Block a user