adding some aliases and cleaning-up indentation
This commit is contained in:
parent
b9afbac011
commit
b325d55834
1 changed files with 30 additions and 28 deletions
58
.gitconfig
58
.gitconfig
|
@ -1,43 +1,45 @@
|
||||||
[user]
|
[user]
|
||||||
name = Rodolphe Breard
|
name = Rodolphe Breard
|
||||||
email = rodolphe@what.tf
|
email = rodolphe@what.tf
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
editor = emacs
|
editor = emacs
|
||||||
|
|
||||||
[push]
|
[push]
|
||||||
default = simple
|
default = simple
|
||||||
|
|
||||||
[alias]
|
[alias]
|
||||||
co = checkout
|
co = checkout
|
||||||
df = diff
|
df = diff
|
||||||
br = branch
|
br = branch
|
||||||
ci = commit
|
ci = commit
|
||||||
st = status
|
st = status
|
||||||
unstage = reset HEAD --
|
ls = log --oneline
|
||||||
last = log -1 HEAD
|
caa = commit -a --amend -C HEAD
|
||||||
undo = reset --soft HEAD^
|
unstage = reset HEAD --
|
||||||
amend = commit --amend
|
last = log -1 HEAD
|
||||||
random = !"git add -A; git commit -am \"$(echo $(curl -s http://whatthecommit.com/index.txt)\" (http://whatthecommit.com)\")\""
|
undo = reset --soft HEAD^
|
||||||
deliver = "!bash ~/builds/git-deliver/deliver.sh"
|
amend = commit --amend
|
||||||
|
new = !sh -c 'git log $1@{1}..$1@{0} "$@"'
|
||||||
|
bclean = "!f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs -r git branch -d; }; f"
|
||||||
|
|
||||||
[color]
|
[color]
|
||||||
branch = auto
|
branch = auto
|
||||||
diff = auto
|
diff = auto
|
||||||
status = auto
|
status = auto
|
||||||
|
|
||||||
[color "branch"]
|
[color "branch"]
|
||||||
current = yellow reverse
|
current = yellow reverse
|
||||||
local = yellow
|
local = yellow
|
||||||
remote = green
|
remote = green
|
||||||
|
|
||||||
[color "diff"]
|
[color "diff"]
|
||||||
meta = yellow bold
|
meta = yellow bold
|
||||||
frag = magenta bold
|
frag = magenta bold
|
||||||
old = red bold
|
old = red bold
|
||||||
new = green bold
|
new = green bold
|
||||||
|
|
||||||
[color "status"]
|
[color "status"]
|
||||||
added = yellow
|
added = yellow
|
||||||
changed = green
|
changed = green
|
||||||
untracked = cyan
|
untracked = cyan
|
||||||
|
|
Loading…
Reference in a new issue