Created
November 29, 2015 20:01
-
-
Save KelvinVenancio/0a10b42e6c861bd91f92 to your computer and use it in GitHub Desktop.
Quick github commit script.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Kelvin Soares - [email protected] - kelvinsoares.tk | |
cd /home/bolado/git/IRCBot | |
git add . | |
git status | |
echo "Do you want to commit ? (y/n)" | |
read CHOICE | |
if [ $CHOICE == "y" ] | |
then | |
echo "Enter the commit message below:" | |
read COMMIT_MSG | |
git commit -am "$COMMIT_MSG" | |
git push -u ircbot master | |
fi | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To let it executable by the system:
To use: