- New deployment
rsync -azv --stats --progress . -e ssh user@host:/path/to/vhost/ --exclude=".git" --exclude-from=".gitignore"
- Notice bad code, locally revert changes, or fix and commit.
git reset --hard HEAD@SHA1
- Sync working copy again
rsync -azv --stats --progress . -e ssh user@host:/path/to/vhost/ --exclude=".git" --exclude-from=".gitignore"