Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I often init a bare repo on single-use server's I'm working on.

Then, have separate prod and staging clones parallel to that.

Have a post-commit hook set on the bare repo that automatically pushes updates to the staging repo for testing.

When ready, then pull the updates into prod.

Might sound strange, but for certain clients hosting situations, I've found it allows for faster iterations. ymmv



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: