Dead-simple Bash script that commits, pushes, and time-stamps changes to GitHub with a one-word command.
-
Place bash script in your project folder. If you want to use this command globally, place it somewhere else (Documents, Desktop, etc.).
-
Add the contents of the alias flie to your .bash_profile, replacing the contents of
absolute-path-to-your-bash-script-goes-here
with the absolute path of your bash script location. For example, if you put it in a project named BettyBoops, the absolute path would be something like,/Users/runaway_jezzabel/Documents/BettyBoops/QuickiePush.sh
-
The script must be made executable. In the Terminal,
cd
to the folder or directory containing the script, and addchmod +x QuickiePush.sh
Alternately you can use the absolute path without changing directories. -
Save your project like you normally would. Assuming you've already setup the basics for your project to integrate with GitHub (i.e. project has been initialized, GitHub repo is created, etc.) add
push
in the Terminal. -
push
will trigger the Bash script, which adds, commits, and pushes your changes while adding a time stamp.
Quickie Push is ideal for projects where commit messages aren't important.
You don't have to use push
as the command. To change it, open your .bash_profile and change it to whatever you prefer.