Teach you how to clone code from gitHub to local

Teach you how to clone code from gitHub to local

First download git

1. Official website address: https://git-scm.com/, click the download link to download the windows version
Insert picture description here

Insert picture description here
The 64-bit version is downloaded by default.
Insert picture description here
Double-click to install, next->select the installation directory, generally do not install on the c drive,

Insert picture description here

Selected by default -.>Next
Insert picture description here
Default
Insert picture description here

Insert picture description here
The default branch name is generally master and there is no need to change it.
Insert picture description here
Next, we configure the path environment, we still choose to use the default second, which can operate git not only through the command line, but also through a third-party graphical interface (such as little turtle). Convenient, and if you don't choose the second one, your idea won't be integrated into git.
Insert picture description here
Next, just click next by default, and then click install.
Insert picture description here
Insert picture description here
Here git is installed! Open the command line and enter: git --version under verification
Insert picture description here

Download TortoiseGit

Download URL: https://tortoisegit.org/download/

Insert picture description here

To install tortiseGit, just click the next step here, you can customize the installation directory under the configuration, the default is the c drive. At
Insert picture description here
this time gortoseGit is installed, open any file location, right click to see it,
right click setting, proceed Configuration: configure user name and mailbox, this version is relatively new, default

Insert picture description here

Insert picture description here

Clone the code on GitHub to local

Open the code on a gitHub, and then fork to your own gitHub branch
Insert picture description here

Then click Code, you can copy the git address of this code in your remote warehouse.
Insert picture description here
Open a local place where the code will be stored, right-click clone
Insert picture description here
to copy the link you just copied, click OK, and wait for the code to be cloned locally.
Insert picture description here

Insert picture description here
You're done.
Insert picture description here
Note: If you just download the code, you can directly copy the git address from other people's warehouse and download it to your local without fork,
but it is generally recommended to use the above method, which is conducive to collaborative development. I will write it later. , Haha

Guess you like

Origin blog.csdn.net/yanfei464486/article/details/111402558