**
clone
**
1. cd到需要操作的文件夹下
2. git clone git远程链接
**
pull拉取最新代码
**
1. git init
2. git add . // 添加到暂存区
3. git commit -m “备注” //
4. git remote add origin “git链接” // 配置git远程仓库
5. git fetch
6. git branch --set-upstream-to=origin/master master // 设置当前分支和远程分支的连接
7. git pull origin master --allow-unrelated-histories // 拉取master分支最新版,并且强制合并
**
push
**
1. git add .
2. git commit -m “备注”
3. git push -u origin master // push到master分支