How to release with Git?

I have a basic question about Git:

Let's say there is subdomain git.mysite.com with git installed in it. My actual site is on mysite.com. How do I tell Git to "release" a specific or latest commit to mysite.com?

I use MediaTemple(gs) for my hosting. Site is in /domains/mysite.com/html and Git is in /domains/git.mysite.com/html/mysite.git .

Thank you!


Was running into this same problem. This article explains it pretty well http://toroid.org/ams/git-website-howto


You would need to run a git pull from the site managing git. I'm not sure how MediaTemple handles that, or their file / site structure.


I think that I would have a cron job that runs git remote udpate && git checkout remote/branch . pull has too many things that can go wrong because it merges.

链接地址: http://www.djcxy.com/p/2448.html

上一篇: 在变量初始化期间使用C ++ lambda函数

下一篇: 如何释放与Git?