I do same task often of committing and pushing changes to remote branch. Being lazy sometimes, I needed to put set of git commands to automatically perform these steps:
For me, by default, Windows executes .sh files correctly using Git Bash. So I would write your script as a regular bash shell script:
.sh
#!/bin/sh cd /d/wamp/www/projectName git checkout dev git add . git commit -am "made changes" git push echo Press Enter... read