Skip to content

Instantly share code, notes, and snippets.

@ericallard0
Created October 17, 2019 09:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericallard0/961c4d109584595594d2baf79d7480e8 to your computer and use it in GitHub Desktop.
Save ericallard0/961c4d109584595594d2baf79d7480e8 to your computer and use it in GitHub Desktop.
c command to commit
#!/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}"
@yuannnh
Copy link

yuannnh commented Oct 17, 2019

seems that we don't have 🎨anymore

@hydrosquall
Copy link

🎨 is my most used one!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment