adding 'git top <command>'

This commit is contained in:
2018-03-27 22:42:24 +01:00
parent 7feb9493ca
commit c547c1d15a

View File

@@ -8,12 +8,12 @@
default = simple
[alias]
tree = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold cyan)<%an>%Creset' --abbrev-commit --date=relative
drqs = "!f(){ git checkout -b feature/DRQS$1; }; f"
svnsync = "!f(){ git co master && git pull && ssh devgit svnsync $(git config --get remote.origin.url | cut -d : -f 2 );}; f"
top = "!f() { GIT_TOP=\"${GIT_DIR%%/.git/modules/*}\"; [ \".$GIT_TOP\" != \".$GIT_DIR\" ] && cd \"$GIT_TOP\"; exec \"$@\"; }; f"
st = status
br = branch
co = checkout
ci = commit
svnsync = "!f(){ git co master && git pull && ssh devgit svnsync $(git config --get remote.origin.url | cut -d : -f 2 );}; f"
[merge]
tool = vimdiff
conflictstyle = diff3