Major refactor. Now uses Dialog

This commit is contained in:
DarkXero-dev 2024-05-20 19:39:37 +03:00
parent 9577625e94
commit 56f678dea9
3 changed files with 248 additions and 158 deletions

36
push.sh Executable file
View file

@ -0,0 +1,36 @@
#!/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 "################################################################"