#!/bin/sh set -e cd cat > .ssh/config <<__END__ Host chroothg Hostname localhost User hg Port 2222 __END__ hg clone ssh://chroothg/real/project cd project echo "and I'm adding something" >> content hg commit -u test2 -m "Added something to the file" hg push