
If you clone your repository using this option and then delete branches (or NOTE: this is a possibly dangerous operation do not use it unless you understand what The resulting repository starts out without any object of its own. git/objects/info/alternates to share the objects with the source When the repository to clone is on the local machine, instead of using hard links,Īutomatically setup.

You are trying to make a back-up of your repository. git/objects directory instead of using hardlinks. Similar to running cp -r src dst while modifying src.įorce the cloning process from a repository on a local filesystem to copy the files NOTE: this operation can race with concurrent modification to the source repository,

no-local will override the default when /path/to/repo is given, using the regular Then this flag is ignored (and we never use the local optimizations). If the repository is specified as a local path (e.g., /path/to/repo), this is theĭefault, and -local is essentially a no-op. git/objects/ directoryĪre hardlinked to save space when possible. "Git aware" transport mechanism and clones the repository by making a copy of HEAD andĮverything under objects and refs directories. When the repository to clone from is on a local machine, this flag bypasses the normal

Under refs/remotes/origin and by initializing and This default configuration is achieved by creating references to the remote branch heads Into the current master branch, if any (this is untrue when "-single-branch" is given
GIT CLONE INTO CURRENT DIRECTORY UPDATE
Remote-submodules] reject-shallow]Ĭlones a repository into a newly created directory, creates remote-tracking branches forĮach branch in the cloned repository (visible using git branch -remotes), and creates andĬhecks out an initial branch that is forked from the cloned repository’s currently activeĪfter the clone, a plain git fetch without arguments will update all the remote-trackingīranches, and a git pull without arguments will in addition merge the remote master branch Git-clone - Clone a repository into a new directory
