Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (12 sloc) 409 Bytes
#!/bin/bash
echo "Committing last changes..."
echo "Note you maybe have to manually add new files you changed ('git add mynewfile.ext')"
#ask for a message
read -p "Write a commit message to identify this commit and its changes and press ENTER: "
git commit -a -m "$REPLY"
read -p "Succesfully commited! Do you want to push? [y/n] " -n 1
echo ""
if [[ $REPLY =~ ^[Yy]$ ]]; then
git push
echo "Pushed!"
fi