-
Notifications
You must be signed in to change notification settings - Fork 0
/
update-git.sh
executable file
·43 lines (41 loc) · 1.33 KB
/
update-git.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
37
38
39
40
41
42
43
# **************************************************************************** #
# #
# ::: :::::::: #
# update-git.sh :+: :+: :+: #
# +:+ +:+ +:+ #
# By: dcaetano <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/06/05 12:36:11 by dcaetano #+# #+# #
# Updated: 2024/06/07 12:01:21 by dcaetano ### ########.fr #
# #
# **************************************************************************** #
#!/bin/sh
clear
str=""
for arg in "$@"; do
str="$str$arg"
done
if [ -z "$str" ]; then
str="git updates"
fi
echo "=========== GIT STATUS ==========="
echo
git status
echo
echo "============= GIT ADD ============"
echo
echo " adding files... "
git add .
echo
echo "=========== GIT STATUS ==========="
echo
git status
echo
echo "=========== GIT COMMIT ==========="
echo
git commit -m "$str"
echo
echo "============ GIT PUSH ============"
echo
git push
echo