-
Notifications
You must be signed in to change notification settings - Fork 3
/
git.sh
executable file
·111 lines (92 loc) · 1.7 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#!/bin/bash
find . -name '.DS_Store' -type f -delete
message=""
case $1 in
# 🎨: art
art)
message="Improve structure / format of the code"
emoji="🎨"
;;
# 🐛: bug
bug|fix)
message="Fix a bug"
emoji="🐛"
;;
# ✨: sparkles
sparkles|feature)
message="Introduce new feature(s)"
emoji="✨"
;;
# 📝: memo
memo|doc|documentation)
message="Add or update documentation"
emoji="📝"
;;
# 🌸: cherry_blossom
gardening|garden|clean|cleaning)
message="Gardening"
emoji="🌸"
;;
# 🚀: rocket
rocket|deploy)
message="Deploy stuff"
emoji="🚀"
;;
# 🎉: tada
tada|first)
message="Begin a project"
emoji="🎉"
;;
# 🚧: construction
construction|wip)
message="Work in progress"
emoji="🚧"
;;
# 📦️: package
package|build)
message="Add or update compiled files or packages"
emoji="📦️"
;;
# 📦️: package
release)
message="Create a release"
emoji="📦️"
;;
# 👽️: alien
alien|api)
message="Update code due to external API changes"
emoji="👽️"
;;
# 🐳: whale
docker|container)
message="Docker"
emoji="🐳"
;;
# 🍊: tangerine
gitpod|gitpodify)
message="Gitpodify"
emoji="🍊"
;;
# 🧪: test tube
alembic|experiments|experiment|xp)
message="Perform experiments"
emoji="🧪"
;;
# 💾: floppy-disk
save)
message="Saved"
emoji="💾"
;;
*)
message="Updated"
emoji="🛟"
;;
esac
if [ -z "$2" ]
then
# empty
git add .; git commit -m "$emoji $message."; git push
else
# not empty
git add .; git commit -m "$emoji $message: $2"; git push
fi