Cloning git directly into web root public
Using github, when I clone a repository it creates a subfolder with the name of the repository.
For example, if I do the following command in my web root:
git clone git@github.com:exampl/myrepo.git
...then there is a folder public_html/myrepo/
How do I approach cloning it directly into the root of public_html
without the subfolder being created?
Moreover, is this the best approach for deploying, or should I be creating a symlink, for example?
git clone git@github.com:foo/bar .
看到这个问题的更多细节。
克隆到cwd:
git clone git@github.com:example/myrepo.git .
链接地址: http://www.djcxy.com/p/90488.html
上一篇: 在开发服务器上测试/预览Github分支
下一篇: 将git直接克隆到web根目录