From ae97609c002f67f19a50dc44f081f1d3c16001ed Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Tue, 24 Aug 2021 15:10:56 -0400 Subject: [PATCH] [+] Add more git aliases --- scripts/bashrc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/bashrc b/scripts/bashrc index 4a45bf1..744e2a9 100644 --- a/scripts/bashrc +++ b/scripts/bashrc @@ -36,7 +36,17 @@ lisp() { commit() { git commit -m "$1" } -alias commit-all='git add .; commit' + +commitall() { + git add . + commit $1 +} +alias commita="commitall" + +compush() { + commitall $1 + git push +} # 关于PS1 (指令提示格式) # 这个版本向上番两次就会出问题