Want to work locally on your web site but have your changes periodically (like every minute) updated on Heroku?
#!/bin/bash
while [ true ]
do
echo "Pushing recent changes to Heroku..."
# optional: git add .
git commit -am 'wip'
git push -f heroku master
echo "Waiting a minute..."
sleep 60
done
When you're done editing files, and you want to update your GitHub repository:
git rebase -i origin/master
# squash all the commits
git push origin master