Skip to content

Instantly share code, notes, and snippets.

@KelvinVenancio
Created November 29, 2015 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KelvinVenancio/0a10b42e6c861bd91f92 to your computer and use it in GitHub Desktop.
Save KelvinVenancio/0a10b42e6c861bd91f92 to your computer and use it in GitHub Desktop.
Quick github commit script.
#!/bin/bash
# Kelvin Soares - kelvinvenanciosoares@gmail.com - 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
@KelvinVenancio
Copy link
Author

To let it executable by the system:

$ cd /usr/bin/
$ sudo wget https://goo.gl/AvhW9H && sudo mv AvhW9H qgc && sudo chmod 777 qgc

To use:

$ qgc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment