From f18038639b09009a80711fc36cb3842965c311b5 Mon Sep 17 00:00:00 2001 From: ladro Date: Wed, 22 May 2019 10:46:36 +0200 Subject: [PATCH] Ajout de gitconfig --- conf/.gitconfig | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 conf/.gitconfig diff --git a/conf/.gitconfig b/conf/.gitconfig new file mode 100644 index 0000000..dd52b2a --- /dev/null +++ b/conf/.gitconfig @@ -0,0 +1,34 @@ +[user] + email = laurent.drogou@rca.fr + name = ladro +[core] + editor = vim +[alias] + st = status + br = branch -a + ch = checkout + rt = reset --hard HEAD + unstage = reset HEAD + lol = log --graph --decorate --pretty=format:'%C(red)%h%Creset -%C(yellow)%d%Creset %s %C(bold blue)%an%Creset %C(green)%cd' --abbrev-commit + lola = log --graph --decorate --pretty=format:'%C(red)%h%Creset -%C(yellow)%d%Creset %s %C(bold blue)%an%Creset %C(green)%cd' --abbrev-commit --all + lpush = "!git --no-pager log origin/$(git currentbranch)..HEAD --oneline" + lpull = "!git --no-pager log HEAD..origin/$(git currentbranch) --oneline" + whatsnew = "!git diff origin/$(git currentbranch)...HEAD" + wn = "!git diff origin/$(git currentbranch)...HEAD" + whatscoming = "!git diff HEAD...origin/$(git currentbranch)" + wc = "!git diff HEAD...origin/$(git currentbranch)" + currentbranch = "!git branch | grep \"^\\*\" | cut -d \" \" -f 2" + ca = "!git add . && git pl && git commit -a -m " + pl = "!git pull origin $(git currentbranch)" + plall = "!git pull origin $(git currentbranch) && git fetch --all" + ps = "!git push origin $(git currentbranch)" + psf = "!git push -f origin $(git currentbranch)" + co = "!git add . && git commit -a -m " + clearpom = "!git reset HEAD */pom.xml ; git checkout */pom.xml ; git reset HEAD pom.xml ; git checkout pom.xml" + fixup = !sh -c 'SHA=$(git rev-parse $1) && git commit --fixup $SHA && git rebase -i --autosquash $SHA~' - +[color] + branch = auto + diff = auto + status = auto + interactive = auto +