Using Git Hooks: Prepare Commit Message to automatically prepend branch names on commit messages
Assuming that this is a brand new git repository:
mv .git/hooks/prepare-commit-msg.sample .git/hooks/prepare-commit-msg
Edit the file by commenting out what was originally in the file and then add this:
Now, whenever you make a commit, it should show up like this in the log:
Since GitHub and Bitbucket both support Emojis inside commit messages, you can do something cute like this
Want more emojis? check out the Emoji Mardown Cheatsheet!