There are two ways to download code from a remote warehouse using Git: pull (copy) and clone (drop), but the two are different. For the first download and a blank one, you can use clone to download, after the download is complete When the later project has been updated and the local needs to be updated, use pull to pull down the new content.
1. The first copy
only requires three steps:
(1) Create a local warehouse, you can manually create it yourself, right-click to enter git, and you can enter the current package.
(2) Initialize git: git init will automatically generate a .git file under the current file package to prove that the initialization is complete
(3) Enter the url of the project on github
git clone url (you can directly enter the url of the github project where the url is).
The effect is as follows:
two, update
git pull origin master