AutoGit
Tired of constantly using git commands when making changes to your code? Just use AutoGit.
-
Automatically adds, commits, and pushes.
-
Use $1, argument 1, as the message for the commit. (optional)
-
Homebrew installation of this feature coming soon.
Creating an Alias
- Save 'autogit.sh' in a safe location.
- Run
cd ~
in your terminal - Run
vim .bash_profile
if you are a mac user orvim .bashrc
if you are using linux. - in the .bash_profile or .bashrc file add the line
alias AutoGit="~/WhereverYouSavedTheFile/autogish"
- Run in your terminal
alias AutoGit="~/WhereverYouSavedTheFile/autogish"
- Use AutoGit whenever you need to add, commit, and push.
Not running?
Run this in your terminal: chmod +x autogit.sh