拉取git代码仓库项目到本地

1.下载git客户端

https://git-scm.com/downloads

2.设置用户名和邮箱

git config --global user.name ""
git config --global user.email "" 

3..创建new repository

create a new repository

4.克隆git仓库地址

git clone  http://xxxxx.git

5.进入创建的库

cd repository

6.新建README文件

touch README.md

7.添加刚创建的文件

git add README.md

8.提交add README.md

git commit  -m "add README"

9.拉取项目

git push -u origin master

猜你喜欢

转载自www.cnblogs.com/lfl17718347843/p/12180208.html