Add git repository to existing folder on VSP

浪子不回头ぞ 提交于 2019-12-01 14:42:43

I don´t want to clone the Repo in annother directory, but just add the .git Folder to my var/www/project

Usually, you use the post-receive hook set in the bare repo to checkout said repo into the destination folder:

git --git-dir=/path/to/project_root/.git --work-tree=/var/www/project/ checkout -f

My solution is get the .git from one cloned workcopy and copy .git to your var/www/project. As all the contents are the same, so the workspace is clean.

May this help you :P

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!