git init --bare /foo/bar/web.git/cd /foo/bar/web.git/mv hooks/post-update.sample hooks/post-updatechmod a+x hooks/post-updategit update-server-infocd /foo/bar/project.git/git remote add web /foo/bar/web.git/git push webcd /foo/bar/curl -u foouser:foopass -X DELETE https://foo.bar/web.git/find web.git/ -type f -exec curl -u foouser:foopass --ftp-create-dirs -T "{}" "https://foo.bar/{}"git archive --format=tar --prefix=foo-0.4.2/ v0.4.2 | xz - > foo-0.4.2.tar.xz