All Projects → devpolo → gac

devpolo / gac

Licence: MIT license
One simple command to format and faster your git add and git commit actions.

Programming Languages

shell
77523 projects
powershell
5483 projects

Labels

Projects that are alternatives of or similar to gac

Zsh Quickstart Kit
Simple ZSH quickstart for using ZSH and zgen
Stars: ✭ 366 (+125.93%)
Mutual labels:  zshrc
Zshrc
My .zshrc
Stars: ✭ 64 (-60.49%)
Mutual labels:  zshrc
Dotfiles
⚡️ Awesome configurations for the development environments
Stars: ✭ 137 (-15.43%)
Mutual labels:  zshrc
Dotfiles
💾 Ian's dotfiles, utils, and Zsh/Vim/tmux configs
Stars: ✭ 554 (+241.98%)
Mutual labels:  zshrc
Awesome Bash Alias
A curated list of awesome Bash aliases.
Stars: ✭ 43 (-73.46%)
Mutual labels:  zshrc
Dotfiles
Hack away :)
Stars: ✭ 78 (-51.85%)
Mutual labels:  zshrc
Taoup
The Tao of Unix Programming (Ruby-powered ANSI colored fortunes)
Stars: ✭ 265 (+63.58%)
Mutual labels:  zshrc
Black Void Zsh
🔮 Awesome, Customable Zsh Starter Kit 🌠🌠
Stars: ✭ 206 (+27.16%)
Mutual labels:  zshrc
Nat
nat - the 'ls' replacement you never knew you needed
Stars: ✭ 1,129 (+596.91%)
Mutual labels:  zshrc
Ubuntu On Steroids
Developer setup & configuration guide for Ubuntu.
Stars: ✭ 111 (-31.48%)
Mutual labels:  zshrc
Dotfiles
Dotfiles for all :D
Stars: ✭ 700 (+332.1%)
Mutual labels:  zshrc
Dotfiles
Get ready for dotfiles. Contains i3, i3blocks, rofi, dunst, picom, vim, tmux, and zsh.
Stars: ✭ 985 (+508.02%)
Mutual labels:  zshrc
Dotfiles
My configurations and scripts
Stars: ✭ 82 (-49.38%)
Mutual labels:  zshrc
Zsh Autoenv
Autoenv for zsh
Stars: ✭ 519 (+220.37%)
Mutual labels:  zshrc
Dotfiles
.zshrc and other bootstrap files
Stars: ✭ 146 (-9.88%)
Mutual labels:  zshrc
Mydotfiles
All my dot configuration files.
Stars: ✭ 359 (+121.6%)
Mutual labels:  zshrc
Dotfiles
What tools and plugins I use for web development?
Stars: ✭ 73 (-54.94%)
Mutual labels:  zshrc
dotfiles
Personal configuration files. neovim, alacritty, hammerspoon and others.
Stars: ✭ 83 (-48.77%)
Mutual labels:  zshrc
Dotfiles
🐢 💨 Speedup your MacOS setup with this fine tuning settings
Stars: ✭ 174 (+7.41%)
Mutual labels:  zshrc
Dotfiles
My configuration files
Stars: ✭ 89 (-45.06%)
Mutual labels:  zshrc

format and faster your commits

Format and faster your git commit

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

Example

gac f call to action button

# equals to:
git add -A
git commit -m "feat: call to action button"

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 (only in Powershell)

  1. Run your PowerShell as administrator
  2. Give access to external script: Set-ExecutionPolicy Unrestricted
  3. Go to Powershell Home Directory cd $PSHOME or cd C:\Windows\System32\WindowsPowerShell\v1.0
  4. Open explorer in $PSHOME start .
  5. Copy Profile.ps1 file (or a variant) or paste the Profile.ps1 contents if it already exists.

Available commands

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>"

Thanks

Inspired by Lenar Hoyt's stackoverflow post

Inspired by the Angular convention

Graphical charter inspired by Ory

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].