Giter Site home page Giter Site logo

juanjosezg / gac Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devpolo/gac

0.0 1.0 0.0 156 KB

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

Home Page: https://paul.crussaire.com

License: MIT License

Shell 58.35% PowerShell 41.65%

gac's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.