Git 操作

远程拉取

0、新建文件夹

1、初始化

git init 

2、建立连接

git remote add origin  https://github.com/chenglin-Zhang/work.git

3、远程分支拉取本地

git fetch origin wincor (wincor为远程仓库的分支名)

4、本地创建并切换分支

git checkout wincor (本地分支名称)  origin/wincor (远程分支名称)

5、拉取全部文件

git pull origin wincor (远程分支名称)

原文地址:https://www.cnblogs.com/lfotest/p/14089206.html