-
Notifications
You must be signed in to change notification settings - Fork 0
/
git-v2.sh
executable file
·30 lines (19 loc) · 899 Bytes
/
git-v2.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
#!/bin/bash
# checking if I have the latest files from github
echo "Checking for newer files online first"
git pull
#wget https://raw.githubusercontent.com/arcolinux/arcolinux-root/master/etc/skel/.bashrc-latest -O etc/skel/.bashrc-latest
# 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 -u origin main
echo "################################################################"
echo "################### Git Push Done ######################"
echo "################################################################"