Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 631 Bytes

README.md

File metadata and controls

49 lines (36 loc) · 631 Bytes

gitfuncs

Some command shorteners for Git

Install like this:

cd ~ && git clone [email protected]:botverse/gitfuncs.git .gitfuncs
echo "source .gitfuncs/gitutils.sh" >> .bash_profile

gc

$ gc This is my comment 
=> git commit -a -m "This is my comment"

gp

$ gp
=> git push origin [CURRENT_BRANCH]

ga

$ ga
=> git add . 

gac

$ gac This is my comment
=> ga && gc This is my comment

gb

$ gb branch-name
# if branch exist
=> git checkout branch-name
# if branch doesnt exist will ask for confirm
=> git checkout -b branch-name