gitconfig: Change alias logs and add gitignore file for vim

main
Mickaël Tansorier 7 years ago
parent 0b6afa5fa5
commit 28fbe11819

@ -2,29 +2,38 @@
name = Mickaël Tansorier name = Mickaël Tansorier
email = mickael.tansorier@openwide.fr email = mickael.tansorier@openwide.fr
[core] [core]
editor = vim editor = vim
excludesfile = /home/micka/.gitignore
[color] [color]
ui = true ui = auto
branch = auto
diff = auto
interactive = auto
status = auto
[alias] [alias]
co = checkout co = checkout
st = status st = status
s = status s = status
br = branch br = branch
d = diff d = diff
dc = diff --cached dc = diff --cached
now = rev-parse --short HEAD now = rev-parse --short HEAD
cp = cherry-pick cp = cherry-pick
# logs # logs
# lg : prefered log # lg : prefered log
# lga: log commit all
# lgo: log other
# lgc: log commit title only # lgc: log commit title only
# lgd: log commit and its details # lgd: log commit and its details
# lgb: log commit with branch # lgb: log commit with branch
lg = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(white)%s%C(reset) %C(dim white)- %an%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)' --all lg = log --graph --pretty=format:'%C(yellow)%h%C(reset) - %s %C(green)(%cr) %C(dim white)<%an>%C(reset) %C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative
lgc = log --oneline lga = log --graph --pretty=format:'%C(yellow)%h%C(reset) - %s %C(green)(%cr) %C(cyan)<%an>%C(reset) %C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative --decorate=full --all
lgd = log --name-status --abbrev-commit lgo = log --graph --format=format:'%C(bold blue)%h%C(reset) - %C(white)%s%C(reset) %C(dim white)- %an%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --decorate
lgb = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all lgc = log --oneline
lgd = log --name-status --abbrev-commit
lgb = log --graph --format=format:'%C(bold blue)%h%C(reset) - %C(cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --abbrev-commit --decorate --all
#[push] #[push]

@ -0,0 +1,12 @@
# swap
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-v][a-z]
[._]sw[a-p]
# session
Session.vim
# temporary
.netrwhist
*~
# auto-generated tag files
tags
Loading…
Cancel
Save