A customizable bash function to format and faster your git add -A && git commit -m "message" command.
gac f call to action button
# equals to:
git add -A
git commit -m "feat: call to action button"- Give this project a ⭐️
- Pull requests and issues are most welcome
- You need a
~/.zshrcfile - Open or create it:
vim ~/.zshrc - Enter insert mode:
i - Past the entire
gac.shfile (or a variant) at the end of your~/.zshrcfile - Exit vim:
:wq - Restart your terminal
- Enjoy faster and formatted
git addandgit commitactions
Work the same as macOS. Use ~/.profile file instead.
- Run your PowerShell as administrator
- Give access to external script:
Set-ExecutionPolicy Unrestricted - Go to Powershell Home Directory
cd $PSHOMEorcd C:\Windows\System32\WindowsPowerShell\v1.0 - Open explorer in $PSHOME
start . - Copy
Profile.ps1file (or a variant) or paste theProfile.ps1contents if it already exists.
gac
# print available semantics
gac c <your message>
# git add -A && git commit -m "chore: <your message>"
gac d <your message>
# git add -A && git commit -m "docs: <your message>"
gac f <your message>
# git add -A && git commit -m "feat: <your message>"
gac r <your message>
# git add -A && git commit -m "refactor: <your message>"
gac s <your message>
# git add -A && git commit -m "style: <your message>"
gac t <your message>
# git add -A && git commit -m "test: <your message>"
gac x <your message>
# git add -A && git commit -m "fix: <your message>"
gac <your message>
# git add -A && git commit -m "<your message>"Inspired by Lenar Hoyt's stackoverflow post