Moonhare_Engine/push_to_git.sh

11 lines
No EOL
205 B
Bash
Executable file

#! /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: $@"