Dead-simple Bash script that commits, pushes, and time-stamps changes to GitHub with a one-word command.
-
Place bash script either somewhere in your project folder or, if you want to use this command globally on various projects, 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 type chmod +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.) type push in the Terminal.
-
Typing "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.
Not recommended for collaborative projects since commit messages are ambiguous.
-You don't have to use push as the command. To change it, open your .bash_profile and change it to whatever you prefer.