aboutsummaryrefslogtreecommitdiff
path: root/commit.sh
diff options
context:
space:
mode:
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
}