-
Notifications
You must be signed in to change notification settings - Fork 2
/
git-v1.sh
36 lines (26 loc) · 1.07 KB
/
git-v1.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
#set -e
##################################################################################################################
#
# 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
cd x86_64
sh ./update.sh
# 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
echo "################################################################"
echo "################### Git Push Done ######################"
echo "################################################################"