A customizable bash function to format and faster your git commit -am "message"
command.
gac n final version
# equals to:
git add -A
git commit -m "๐ NEW RELEASE: final version"
- Give this project a โญ๏ธ
- Pull requests and issues are most welcome
- You need a
~/.zshrc
file - Open or create it:
vim ~/.zshrc
- Enter insert mode:
i
- Past the entire
gac.sh
file (or a variant) at the end of your~/.zshrc
file - Exit vim:
:wq
- Restart your terminal
- Enjoy faster and formatted
git add
andgit commit
actions
Work the same as macOS. Use ~/.profile
file instead.
gac # or -h or --help
# print all available semantics
gac b <your message>
# ๐ BUG FIX: <your message>
gac c <your message>
# ๐ฆ CHORE: <your message>
gac d <your message>
# ๐ DOCS: <your message>
gac f <your message>
# โ FEAT: <your message>
gac n <your message>
# ๐ NEW RELEASE: <your message>
gac i <your message>
# ๐ IMPROVE: <your message>
gac r <your message>
# ๐ช REFACTOR: <your message>
gac s <your message>
# ๐จ STYLE: <your message>
gac t <your message>
# ๐งช TEST: <your message>
gac w <your message>
# ๐ WORKING ON: <your message>
gac <your message>
# <your message>
Inspirerd by Lenar Hoyt's stackoverflow post
Inspirerd by the the Angular convention
How to Open Source Like a Pro, Ben Awad's video