-
-
Save learn2reid/08cb6fccba71dceaf6b20c41dd58f086 to your computer and use it in GitHub Desktop.
Use Emoji in Git commits
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
# shellcheck shell=bash | |
# shellcheck disable=SC2145 | |
function gcap() { | |
git commit -m "$*" #&& git push | |
} | |
function gcapp() { | |
git add . && git commit -m "$*" #&& git push | |
} | |
# function gcapp() { | |
# git add . && git commit -m "$*" && git push | |
# } | |
#new feature | |
function gnew() { | |
gcap "π NEW: $@" | |
} | |
#Adding | |
function gadd() { | |
gcap "β ADDING: $@" | |
} | |
#Removing | |
function gremove() { | |
gcap "β REMOVING: $@" | |
} | |
#upgrading | |
function gup() { | |
gcap "β¬οΈ UPGRADING: $@" | |
} | |
#downgrading | |
function gdown() { | |
gcap "β¬οΈ DOWNGRADING: $@" | |
} | |
function gsubmod() { | |
gcap "π¦οΈ SUBMODULE: $@" | |
} | |
#improvement | |
function gimpr() { | |
gcap "βοΈ IMPROVEMENT: $@" | |
} | |
#important | |
function gimpt() { | |
gcap "βοΈ IMPORTANT: $@" | |
} | |
function gmajor() { | |
gcap "π₯ MAJOR CHANGES: $@" | |
} | |
#refactoring | |
function gref() { | |
gcap "π REFACTOR: $@" | |
} | |
function gclogs() { | |
gcap "ποΈ Adding Changelog $@" | |
} | |
#documentation | |
function gdoc() { | |
gcap "π DOC: $@" | |
} | |
#typo | |
function gtypo() { | |
gcap "βοΈ TYPO: $@" | |
} | |
#release | |
function grel() { | |
gcap "π RELEASE: $@" && git tag "$@" | |
} | |
#contribution | |
function gthx() { | |
gcap "π THANKS: $@" | |
} | |
#breaking | |
function gbreak() { | |
gcap "β οΈ BREAKING: $@" | |
} | |
#dead code removal | |
function gcleanup() { | |
gcap "β»οΈ CODE CLEANUP: $@" | |
} | |
#tests | |
function gtest() { | |
gcap "β TEST: $@" | |
} | |
#experimental | |
function gexp() { | |
gcap "π EXPERIMENTAL: $@" | |
} | |
function ghotfix() { | |
gcap "π Critical hotfix: $@" | |
} | |
function gdeploy() { | |
gcap "ποΈ DEPLOYMENT: $@" | |
} | |
function gmac() { | |
gcap "π Fixing something on macOS: $@" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment