Adding git config
This commit is contained in:
parent
1b5423997e
commit
d8ac370852
47
git/gitconfig
Normal file
47
git/gitconfig
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
[user]
|
||||||
|
name = Thomas Lovén
|
||||||
|
email = thomasloven@gmail.com
|
||||||
|
[credential]
|
||||||
|
helper = cache
|
||||||
|
[color]
|
||||||
|
ui = auto
|
||||||
|
branch = auto
|
||||||
|
diff = auto
|
||||||
|
status = auto
|
||||||
|
[color "branch"]
|
||||||
|
current = yellow reverse
|
||||||
|
local = yellow
|
||||||
|
remote = green
|
||||||
|
[color "diff"]
|
||||||
|
meta = yellow
|
||||||
|
frag = magenta
|
||||||
|
old = red
|
||||||
|
new = green
|
||||||
|
[color "status"]
|
||||||
|
added = yellow
|
||||||
|
changed = green
|
||||||
|
untracked = cyan
|
||||||
|
|
||||||
|
[push]
|
||||||
|
default = current
|
||||||
|
[core]
|
||||||
|
pager = less -F -X
|
||||||
|
|
||||||
|
[alias]
|
||||||
|
st = status
|
||||||
|
ci = commit
|
||||||
|
co = checkout
|
||||||
|
di = diff
|
||||||
|
dc = diff --cached
|
||||||
|
wd = diff --word-diff=color
|
||||||
|
amend = commit --amend
|
||||||
|
aa = add --all
|
||||||
|
b = branch
|
||||||
|
updateall = submodule foreach 'git pull'
|
||||||
|
l = !prettygit
|
||||||
|
p = "!echo $PATH"
|
||||||
|
la = !git l --all
|
||||||
|
r = !git l -30
|
||||||
|
ra = !git r --all
|
||||||
|
[merge]
|
||||||
|
tool = vimdiff
|
38
git/gitignore_global
Normal file
38
git/gitignore_global
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
*.com
|
||||||
|
*.class
|
||||||
|
*.dll
|
||||||
|
*.exe
|
||||||
|
*.o
|
||||||
|
*.so
|
||||||
|
|
||||||
|
*.7z
|
||||||
|
*.dmg
|
||||||
|
*.gz
|
||||||
|
*.iso
|
||||||
|
*.jar
|
||||||
|
*.rar
|
||||||
|
*.tar
|
||||||
|
*.zip
|
||||||
|
|
||||||
|
*.log
|
||||||
|
*.sql
|
||||||
|
*.sqlite
|
||||||
|
|
||||||
|
.DS_Store
|
||||||
|
.DS_Store?
|
||||||
|
._*
|
||||||
|
.Spotlight-V100
|
||||||
|
.Trashes
|
||||||
|
Icon?
|
||||||
|
ehthumbs.db
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
#Latex files
|
||||||
|
*.aux
|
||||||
|
*.bcf
|
||||||
|
*.blg
|
||||||
|
*.fdb_latexmk
|
||||||
|
*.fls
|
||||||
|
*.out
|
||||||
|
|
||||||
|
tags
|
16
git/setup.sh
Executable file
16
git/setup.sh
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
function setup_git()
|
||||||
|
{
|
||||||
|
brew install git
|
||||||
|
|
||||||
|
cat << EOF > ${HOME}/.gitconfig
|
||||||
|
[include]
|
||||||
|
path = ${DOTFILES}/git/gitconfig
|
||||||
|
[core]
|
||||||
|
excludesfile = ${DOTFILES}/git/gitignore_global
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
export DOTFILES=/Users/thomas/dotfiles
|
||||||
|
setup_git
|
Loading…
x
Reference in New Issue
Block a user