1.在github上创建仓库
2.在项目中打开Git Bash Here
3.git init 初始化仓库
4.git add . 添加
5.git commit -m ""
6.git remote add origin 加远程仓库名 连接远程仓库
7.git push -u origin master提交至远程仓库(master是主分支)
8.git pull 拉取
9.git checkout -b dev 创建并切换到dev分支
10.git branch -a 查找所有分支
11.git branch -D dev删除dev分支
12.git reset 取消暂存区
git多人协同开发:
1.创建组织 New origanization
2.创建团队 team
3.添加成员 member (github账号)
4.点击组织创建项目 Repositories
5.添加团队和合伙人 Add team and collaborators
6.点击Collaborators&teams进行设置权限