Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 774 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 774 Bytes

lazy-gitcommit

This repo explains how you do commits in 18 key hits instead of 42

How-To

(I use .bashrc file for it.) You need to set an aliases for every commands you will use:

LAZYGITCOMMIT_FILE=~/.bashrc
echo 'function gc { git add .; git commit -S -m "$*"; };' >> $LAZYGITCOMMIT_FILE
echo 'alias gp="git push"' >> $LAZYGITCOMMIT_FILE
echo 'alias gl="git log"' >> $LAZYGITCOMMIT_FILE
echo 'alias gs="git status"' >> $LAZYGITCOMMIT_FILE

That's it!

Fast way to install

Run

curl https://raw.githubusercontent.com/ivan-developer-01/lazy-gitcommit/main/install.sh | sh

Help on commands

  • gc - Add the current directory to Git and commit changes
  • gp - Runs git push
  • gl - Runs git log
  • gs - Runs git status