
git clone -mirror: Clone a repository but without the ability to edit any of the files. git clone : Clone (download) a repository that already exists on GitHub, including all of the files, branches, and commits. How to Use git clone Common usages and options for git clone
test and deploy as needed from the branch. open a pull request to compare the changes with your collaborators. later use git push to share your branch with the remote repository. Without being limited by which files you can work on, you can work on a feature branch to make changes safely. The ability to work with the entire repository means that all developers can work more freely. Once you have cloned a repository, you won't need to clone it again to do regular development. Once a repository already exists on a remote, like on GitHub, then you would clone that repository so you could interact with it locally.
By cloning with Git, you get the entire repository - all files, all branches, and all commits.Ĭloning a repository is typically only done once, at the beginning of your interaction with a project. When you clone a repository, you don't get one file, like you may in other centralized version control systems.