-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsave.sh
More file actions
executable file
·42 lines (35 loc) · 754 Bytes
/
Copy pathsave.sh
File metadata and controls
executable file
·42 lines (35 loc) · 754 Bytes
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
37
38
39
40
41
42
#/bin/bash
# This file is for saving to github from codespaces. It's not really for the actual software.
runrebase() {
git pull --rebase
git add .
git commit -m "Remote from codespaces"
git push origin main
sleep 0.3
clear
sleep 0.3
echo "Saved."
sleep 1.3
clear
}
echo "Do you need to rabase? [y/n]"
read message
if [ $message = "y" ] || [ $message = "Y" ]; then
echo "Running with git rebase..."
sleep 1
runrebase
exit
elif [ $message = "n" ] || [ $message = "N" ]; then
echo "Proceding to main file..."
else
echo "Not a valid responce. Proceding to main file..."
fi
git add .
git commit -m "Remote from codespaces"
git push origin main
sleep 0.3
clear
sleep 0.3
echo "Saved."
sleep 1.3
clear