-
Whether the repository needs to be initialized locally
Git clone is a complete copy of the entire project, so there is no need for a local repository.
Git pull requires initializing the local folder as a repository
-
Switching branches is a problem
Clone projects can freely switch between existing branches at the remote end
Pull can only be in the current branch
3. #### push problem
Clone projects can be pushed to remote repositories directly by specifying branches
The pull project needs to run the remote add Origin command to add the remote repository URL before it can be pushed
Usage scenarios
The first step in remote operations is to use Git Clone to clone a repository locally from a remote host.
After the code is modified locally, git pull must be performed before each push from the local repository to the remote repository to ensure that there is no version conflict when pushing to the remote repository.