-
-
Save ericallard0/961c4d109584595594d2baf79d7480e8 to your computer and use it in GitHub Desktop.
c command to commit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
declare -a gitmojis | |
gitmojis["1"]="β¨" | |
gitmojis["3"]="π" | |
gitmojis["5"]="π" | |
gitmojis["7"]="π" | |
gitmojis["9"]="π" | |
gitmojis["11"]="π" | |
gitmojis["13"]="β»οΈ" | |
gitmojis["2"]="π" | |
gitmojis["4"]="π" | |
gitmojis["6"]="β " | |
gitmojis["8"]="π‘" | |
gitmojis["10"]="π₯" | |
gitmojis["12"]="π·" | |
gitmojis["14"]="π½" | |
echo "Cheatsheet: β¨ 1 (sparkles) new feature | π 2 (bug) bug" | |
echo " π 3 (ok_hand) fixing feedback | π 4 (lipstick) small visual change" | |
echo " π 5 (checkered_flag) feature flag | β 6 (check) tests" | |
echo " π 7 (pencil) documentation | π‘ 8 (bulb) documenting code" | |
echo " π 9 (truck) moving code | π₯ 10 (fire) removing code" | |
echo " π 11 (loud_sound) logging | π· 12 (label) adding types" | |
echo " β»οΈ 13 (recycle) refactoring | π½ 14 (alien) adapting to api changes" | |
echo Enter Gitmojis number: | |
read gitmojis_number | |
echo "selected ${gitmojis[gitmojis_number]}" | |
echo "Enter Category (default is 'Logs'):" | |
read category_input | |
category="${category_input:-Logs}" | |
echo Enter Message: | |
read message | |
commitmessage="${gitmojis[gitmojis_number]} [${category}] ${message}" | |
echo "Committing with message" | |
echo "${commitmessage}" | |
git commit -m "${commitmessage}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
π¨ is my most used one!