Git command (use git command to download the code to the local)

1. Download and install the git version corresponding to your computer

Download link: 1 https://git-scm.com/

After the installation is successful, open the git bash command line, as shown in the figure:

2. Use the git command

1)

git --version

Check whether git is installed successfully, as shown in the figure:

2) Initialize the folder, so that the folder can successfully use git

command:

cd G:/git
git --init

as the picture shows:

3) Create a username for the current project:

git config --global user.name 'zhangsan'

As shown in the figure:

4) Create a mailbox for the current project

git config --global user.email '[email protected]'

5) Download the project to the local:

git clone https://git.imooc.com/coding-374/ImoocInterface.git(github仓库地址)

 

Guess you like

Origin blog.csdn.net/lxp_mujinhuakai/article/details/115356958