Ajout alias + fichier externe pour config user.*

master
Julien Rosset 3 years ago
parent 46fa66635b
commit df401918d3

1
.gitignore vendored

@ -0,0 +1 @@
gitconfiguser

@ -1,6 +1,4 @@
[user] # vim: syntax=gitconfig
name = darkelfe14728
email = jul.rosset@gmail.com
[color] [color]
diff = auto diff = auto
status = auto status = auto
@ -17,14 +15,16 @@
brsa = "!f() { git push ${2-$(git config --get custom.serverbranch.remote)} ${2-$(git config --get custom.serverbranch.remote)}/${3-$(git config --get custom.serverbranch.branch)}:refs/heads/${1}; }; f" brsa = "!f() { git push ${2-$(git config --get custom.serverbranch.remote)} ${2-$(git config --get custom.serverbranch.remote)}/${3-$(git config --get custom.serverbranch.branch)}:refs/heads/${1}; }; f"
brsd = "!f() { git push ${2-$(git config --get custom.serverbranch.remote)} :heads/${1}; }; f" brsd = "!f() { git push ${2-$(git config --get custom.serverbranch.remote)} :heads/${1}; }; f"
link = branch --track link = branch --track
lo = log --pretty=format:'%Cred%h%Creset %C(bold blue)<%an>%Creset - %Cgreen%cr%Creset - %s' --abbrev-commit lo = log --date=format-local:'%d/%m/%Y %H:%M:%S' --pretty=format:'%Cred%h%Creset %C(bold blue)<%an>%Creset - %Cgreen%cr%Creset - %cd - %s' --abbrev-commit
ls = log --pretty=format:'%Cred%h%Creset %C(bold blue)<%an>%Creset - %Cgreen%cr%Creset - %s' --abbrev-commit --stat ls = lo --stat
ln = log --pretty=format:'%Cred%h%Creset %C(bold blue)<%an>%Creset - %Cgreen%cr%Creset - %s' --abbrev-commit -n ln = lo -n
lns = log --pretty=format:'%Cred%h%Creset %C(bold blue)<%an>%Creset - %Cgreen%cr%Creset - %s' --abbrev-commit --stat -n lns = ls -n
uf = checkout -- uf = checkout --
cb = checkout cb = checkout
push = push --tags
untrack = rm --cached untrack = rm --cached
tg = "!f() { git tag -a $1 -m \"${2-$1}\" }; f"
pu = "f() { git push && git push --tags }; f"
sm = "!f() { git pull && git merge ${2-$(git config --get custom.serverbranch.remote)}/${1} && git push; }; f"
[core] [core]
editor = vim editor = vim
autocrlf = false autocrlf = false
@ -41,3 +41,5 @@
tool = vimdiff tool = vimdiff
[difftool] [difftool]
prompt = false prompt = false
[include]
path = gitconfiguser

Loading…
Cancel
Save