Howto forward workdir to HEAD
- From
- Thomas Koch <thomas@koch.ro>
- Date
- Sep 6, 2008, 21:32 UTC
- Message-ID
- <200809062332.39147.thomas@koch.ro>
Hi,
I'm trying to setup an intranet Webapp using GIT for maintanance and backup. First I created a git repo on my working machine and imported the webapp, made some changes.
Then I created a normal, non-bare repo at the server and pushed from my local repo into the server repo, checked out branch "stable" and everything is fine.
Now I made a local change and pushed again, but the servers workdir is not automatically forwarded to the pushed state. How do I forward it?
Can I define a Hook that automatically forwards the workdir after a push, but only if the workdir is clean?
What do you think of this method to deploy a webapp?
Best regards,
-- Thomas Koch, Software Developer http://www.koch.ro