diff --git a/push_to_git.sh b/push_to_git.sh new file mode 100755 index 0000000..7ecc8d2 --- /dev/null +++ b/push_to_git.sh @@ -0,0 +1,11 @@ +#! /usr/bin/bash + +git add . +git commit -m "$@" +git push -u origin main +git push -u github main + +hash=$(git rev-parse --short HEAD) + +echo "commit $hash pushed to origin and github" +echo "commit message: $@" \ No newline at end of file