There are at least 3 previous questions explaining how to clone a repository without the .git directory:
- Do a "git export" (like "svn export")?
- Git clone without .git directory
- What's the best practice to "git clone" into an existing folder?
From those questions, it seems you can't just run git clone
and have the repository cloned without the .git
directory.
Yet, in the majority of repos I've cloned, such as the one in the command below, no .git
directory is made.
git clone https://github.com/scotch-io/scotch-box.git
What determines whether a straight forward git clone
command creates a .git
directory or not?