Skip to content

A shell script that quickly adds all changes to git, commits, and pushes in one command

Notifications You must be signed in to change notification settings

joelwass/quickCommit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

quickCommit

A shell script that quickly adds all changes, commits, and pushes to git in one command

Setup

Download zip or clone. In directory of script, enter command in terminal: chmod +x installQuickCommit

To Install

  • double click installQuickCommit within finder and enter password when prompted... or:
  • within directory of downloaded script, in terminal, type: sudo install quickcommit /usr/local/bin/quickcommit

To run

if installed succesfully using previous command: you can run using quickcommit from any repo directory (ex: quickcommit "commit message" origin master)

NOTES if installation fails

if script is in same directory as repo you can run it without installing: ./quickcommit "commit message" upstream branch (ex: ./quickcommit "commit message" origin master)

if script is in home directory you can run it without installing: ~./quickcommit "commit message" upstream branch (ex: ~./quickcommit "commit message" origin master)

If you want to be able to run script universally in all directories and had trouble installing using previous methods then try:

  1. Copy script into /usr/local/bin/
  • cd into /usr/local/bin/
  • in terminal, type: sudo cp -p /Path/To/quickcommit/Script ./
  • restart terminal
  • you can now run using quickcommit from any repo directory (ex: quickcommit "commit message" origin master)
  1. Add Path into .bash_profile
  • in terminal, type: open ~/.bash_profile (if you don't have a bash profile, http://apple.stackexchange.com/questions/99835/how-to-create-bash-profile-and-profile)
  • in bash_profile, type: export PATH="$PATH:$HOME/path/to/quickcommit/script" (DON'T FORGET TO CHANGE THE PATH/TO/QUICKCOMMIT/SCRIPT TO YOUR ACTUAL PATH TO THE SCRIPT)
  • save bash_profile
  • in terminal, type: . ./.bash_profile (notice the space in between the first two periods)
  • in terminal, type: source ~/.bash_profile
  • restart terminal
  • you can now run using quickcommit from any repo directory (ex: quickcommit "commit message" origin master)

About

A shell script that quickly adds all changes to git, commits, and pushes in one command

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages