git-clone - Clone a repository into a new directory
Options
- —bare
TL;DR: Clone the remote repository without tracking any branches nor the configurations.
Make a bare Git repository. That is, instead of creating
<directory>and placing the administrative files in<directory>/.git, make the<directory>itself the$GIT_DIR. This obviously implies the--no-checkoutbecause there is nowhere to check out the working tree. Also the branch heads at the remote are copied directly to corresponding local branch heads, without mapping them torefs/remotes/origin/. When this option is used, neither remote-tracking branches nor the related configuration variables are created.