先声明几个变量 仓管A:主分支,只有master分支仓管B:开发分支,只有各个业务开发分支   仓管B fork 于 A如下图 为了保证 代码的稳定性,只有 仓管B中的某个分支测试完毕并进行了代码review 才可以 和 仓管A进行 merge PS: 只有仓库B所有开发都有权限  仓库A 只有特定人才有权限,这样可以保证仓库A的代码稳定性 流程和命令如下: 1.某业务功能确定要开发,2015年6月20号开始开发,新建分支 git checkout -b pmt_20150630_walle  remote_a/master //从 A仓管新建分支 git push remote_b pmt_20150630_walle:pmt_20150630_walle //在B仓管新建分支pmt_20150630_walle这样其他人可以直接使用此分支开发 2.开发过程中提交更新 直到测试 git add . git commit -am
   git 基本命令git add .git commit -am "请填写你NB的备注"git fetch --allgit fetch -p  //如果远程分支删除了,本地发现还是有备份,可以使用此命令git push origin master:mastergit remote add origin 仓库地址git remote rm origingit remote -vgit rebase origin/mastergit rebase --continuegit rebase --skipgit rebase --abort###举例仓库仓库地址A:git@gitlab.54php.cn:guowei/demos.git仓库地址B:git@gitlab.54php.cn:infra/demos.git开发人员仓库C:git@gitlab.54php.cn:lurenjia/demos.git###单分支开发git clone A将远程的仓
  • 微信公众号 微信小程序
  • 微信机器人
  • 群1:1046090432
  • 群2:585567981