mirror of
https://github.com/The-Repo-Club/DotFiles.git
synced 2025-02-21 03:43:21 -05:00
39 lines
1.3 KiB
Bash
39 lines
1.3 KiB
Bash
|
#!/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
|