Skip to content

Instantly share code, notes, and snippets.

@coderaaron
Created June 4, 2019 19:36
Show Gist options
  • Save coderaaron/36f79299a8431aaf62b58b2a90b8a86c to your computer and use it in GitHub Desktop.
Save coderaaron/36f79299a8431aaf62b58b2a90b8a86c to your computer and use it in GitHub Desktop.
Use Emoji in Git commits
function gcap() {
git add . && git commit -m "$*" && git push
}
#bug
function gbug() {
gcap "πŸ› BUG: $@"
}
#improvement
function gimp() {
gcap "↗️ IMPROVEMENT: $@"
}
#new feature
function gnew() {
gcap "πŸ†• NEW: $@"
}
#tests
function gtest() {
gcap "βœ… TEST: $@"
}
#documentation
function gdoc() {
gcap "πŸ“– DOC: $@"
}
#typo
function gtypo() {
gcap "✏️ TYPO: $@"
}
#refactoring
function gref() {
gcap "πŸ”€ REFACTOR: $@"
}
#release
function grel() {
gcap "πŸš€ RELEASE: $@" && git tag $@
}
#contribution
function gthx() {
gcap "πŸ‘ THANKS: $@"
}
#breaking
function gbreak() {
gcap "⚠️ BREAKING: $@"
}
#important
function gnote() {
gcap "❗️ IMPORTANT: $@"
}
#experimental
function gexp() {
gcap "πŸ™ EXPERIMENTAL: $@"
}
#dead code removal
function gdead() {
gcap "♻️ CODE CLEANUP: $@"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment