xero-plasma-snapshot/push.sh
2024-05-20 19:39:37 +03:00

36 lines
1.2 KiB
Bash
Executable file

#!/bin/bash
#set -e
##################################################################################################################
# Written to be used on 64 bits computers
# Author : DarkXero
# Website : http://xerolinux.github.io
##################################################################################################################
# change a commit comment
# git commit --amend -m "more info"
# git push --force origin
echo "Deleting the work folder if one exists"
[ -d work ] && rm -rf work
# 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 -m "$input"
# Push the local files to github
git push -f -u origin main
echo "################################################################"
echo "################### Git Push Done ######################"
echo "################################################################"