Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.