From fbd8344b706e16d71a59b2ebe7c856103428180e Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Thu, 16 Sep 2021 21:27:46 -0400 Subject: [PATCH] [M] Separate git commands to bashrc-git.sh --- scripts/bashrc-git.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 scripts/bashrc-git.sh diff --git a/scripts/bashrc-git.sh b/scripts/bashrc-git.sh new file mode 100644 index 0000000..f756c6f --- /dev/null +++ b/scripts/bashrc-git.sh @@ -0,0 +1,16 @@ +# Git commit wrapper +commit() { + msg="$@" + git commit -m "$msg" +} + +commitall() { + git add . + commit "$@" +} +alias commita="commitall" + +compush() { + commitall "$@" + git push +}