39 lines
1.3 KiB
Bash
Raw Normal View History

2021-01-09 17:30:42 +00:00
#!/bin/bash
##################################################################################################################
# Author : TheCynicalLiger
# Website : https://github.com/TheCynicalLiger/
##################################################################################################################
#
# DO NOT JUST RUN THIS. EXAMINE AND JUDGE. RUN AT YOUR OWN RISK.
#
##################################################################################################################
# checking if I have the latest files from github
echo "Checking for newer files online first"
git pull
# Below command will backup everything inside the project folder
git add --all .
# Give a comment to the commit if you want
echo "####################################"
echo "Write your commit comment!"
echo "####################################"
read input
# Committing to the local repository with a message containing the time details and commit text
git commit -S -m "$input"
# Push the local files to github
git push -u origin main
echo "################################################################"
echo "################### Git Push Done ######################"
echo "################################################################"
git send-email --subject-prefix="${PWD##*/}][PATCH" --to wayne6324@gmail.com -1