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 [email protected]: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 [email protected]:foo/bar .
See this question for more details.
Clone into cwd:
git clone [email protected]:example/myrepo.git .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With