Skip to content

Instantly share code, notes, and snippets.

@santuman
Last active October 29, 2021 18:49
Show Gist options
  • Save santuman/eb10e1124114c9eb992a2468cf3b3e41 to your computer and use it in GitHub Desktop.
Save santuman/eb10e1124114c9eb992a2468cf3b3e41 to your computer and use it in GitHub Desktop.
gcap() {
git add . && git commit -m "$*" && git push
}
# NEW.
gnew() {
gcap "πŸ“¦ NEW: $@"
}
# IMPROVE.
gimp() {
gcap "πŸ‘Œ IMPROVE: $@"
}
# FIX.
gfix() {
gcap "πŸ› FIX: $@"
}
# RELEASE.
grlz() {
gcap "πŸš€ RELEASE: $@"
}
# DOC.
gdoc() {
gcap "πŸ“– DOC: $@"
}
# TEST.
gtst() {
gcap "πŸ€– TEST: $@"
}
# BREAKING CHANGE.
gbrk() {
gcap "‼️ BREAKING: $@"
}
gtype() {
NORMAL='\033[0;39m'
GREEN='\033[0;32m'
echo "$GREEN gnew$NORMAL β€” πŸ“¦ NEW
$GREEN gimp$NORMAL β€” πŸ‘Œ IMPROVE
$GREEN gfix$NORMAL β€” πŸ› FIX
$GREEN grlz$NORMAL β€” πŸš€ RELEASE
$GREEN gdoc$NORMAL β€” πŸ“– DOC
$GREEN gtst$NORMAL β€” πŸ§ͺ️ TEST
$GREEN gbrk$NORMAL β€” ‼️ BREAKING"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment