aboutsummaryrefslogtreecommitdiff
path: root/commit.sh
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-11-05 00:40:39 -0400
committerBobby <[email protected]>2022-11-05 00:40:39 -0400
commitbd7f25c84345fa72a3b0c545f10f6b857d8e041a (patch)
treee63afdb9eb50d95c444566b8d3191b544fe7cc5c /commit.sh
parentccec717c2a69ab7e64343abd817175dc5b7f2b2a (diff)
downloadtexty-bd7f25c84345fa72a3b0c545f10f6b857d8e041a.tar.xz
texty-bd7f25c84345fa72a3b0c545f10f6b857d8e041a.zip
feat:
Diffstat (limited to 'commit.sh')
-rwxr-xr-xcommit.sh2
1 files changed, 2 insertions, 0 deletions
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
}