From 4cddccd416476e98d4c27b6ffd504fd4fa003427 Mon Sep 17 00:00:00 2001 From: Laily Date: Fri, 10 Jul 2020 18:54:47 +0800 Subject: [PATCH] fix: git template --- git/.gitconfig | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/git/.gitconfig b/git/.gitconfig index 23c80d2..3c0e637 100644 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -7,13 +7,23 @@ editor = /usr/local/bin/nvim excludesfile = ~/.dotfile/git/.gitignore [alias] - merge2 = "!f() { git checkout $1 && git merge $2 && git checkout -; }; f" au = add -u co = checkout cm = commit -m st = status br = branch + pl = pull + merge2 = "!f() { git checkout $1 && git merge $2 && git checkout -; }; f" + bg = "!f() { git branch | grep $1; }; f" + delbr = "!f(){ git branch -D `git branch | grep \"\b$1\"`; };f" + cin = commit --amend --no-edit + [push] default = current [merge] tool = vimdiff +[init] + templatedir = $HOME/.dotfile/git/gittemplates + + +