开发者

Cloning git directly into web root public_html

开发者 https://www.devze.com 2023-03-10 05:11 出处:网络
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:

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 withou开发者_如何学运维t 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 .

See this question for more details.


Clone into cwd:

git clone git@github.com:example/myrepo.git .
0

精彩评论

暂无评论...
验证码 换一张
取 消