github 上需要创建仓库
1 需要安装git软件
2 安装完成,点击右键选择git bash
3 初始化,git init
4 从远程仓库克隆 git clone 远程仓库地址
6 已有项目和远程仓库建立连接
git add origin 远程仓库地址
origin是你remote的名称
7 查看remote git remote
8 查看本地文件的状态git status
9 文件提交
1 git add *
2 git commit
3 git push remote-name branch-name branch是分支
10 从远程仓库拉取文件到本地仓库
git pull 远程仓库地址
如果本地有文件需要加参数 --allow-unrelated-histories