新建项目文件夹
git初始化 git init
添加远程仓库地址
git remote add origin 《git 地址》
拉取线上代码
git pull origin master //线上分支
创建本地分支
git checkout -b 本地分支名称
修改代码
查看 是否有提交的 代码
git status
提交当前所有的代码
git add .
提交信息
git commit -m '提交信息'
把本地分支 提交到 远程的分支上面
git push origin master:master 本地分支名称:远程分支名称
得到 分支 后面可以加分支名 也可以是 *
git branch
所在分支 前有星号