From bd7f25c84345fa72a3b0c545f10f6b857d8e041a Mon Sep 17 00:00:00 2001 From: Bobby Date: Sat, 5 Nov 2022 00:40:39 -0400 Subject: feat: --- commit.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'commit.sh') diff --git a/commit.sh b/commit.sh index b3e4fc7..6eda90f 100755 --- a/commit.sh +++ b/commit.sh @@ -59,10 +59,12 @@ commit() { then # If the branch is the current branch, commit the files git commit $1 -m "$2" + git push origin $branch else # If the branch is not the current branch, checkout the branch and commit the files git checkout $3 git commit $1 -m "$2" + git push origin $3 fi } -- cgit v1.2.3