/gac

One simple command to format and faster your git add and git commit actions.

Primary LanguageShellMIT LicenseMIT

ORY Keto - Open Source & Cloud Native Access Control Server

Format and faster your git commit

A customizable bash function to format and faster your git commit -am "message" command.

Exemple

gac n final version

# equals to:
git add -A
git commit -m "๐Ÿš€ NEW RELEASE: final version"

Contributions

  1. Give this project a โญ๏ธ
  2. Pull requests and issues are most welcome

Quickstart

macOS

  1. You need a ~/.zshrc file
  2. Open or create it: vim ~/.zshrc
  3. Enter insert mode: i
  4. Past the entire gac.sh file (or a variant) at the end of your ~/.zshrc file
  5. Exit vim: :wq
  6. Restart your terminal
  7. Enjoy faster and formatted git add and git commit actions

Linux

Work the same as macOS. Use ~/.profile file instead.

Windows

โš ๏ธ Not tested on Windows yet but should work the same as Linux if you are using Git Bash. Pull requests are welcome.

Available commands

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>

Thanks

Inspirerd by Lenar Hoyt's stackoverflow post

Inspirerd by the the Angular convention

How to Open Source Like a Pro, Ben Awad's video

Graphical charter inspired by Ory

Header icon licence