Cloning git directly into web root public_html
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 firstname.lastname@example.org:exampl/myrepo.git
…then there is a folder
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?
2 Solutions collect form web for “Cloning git directly into web root public_html”
git clone email@example.com:foo/bar .
See this question for more details.
Clone into cwd:
git clone firstname.lastname@example.org:example/myrepo.git .