首页 > 其他 > 详细

git 开发merge rebase 记录

时间:2016-06-13 19:11:54      阅读:157      评论:0      收藏:0      [点我收藏+]
  519  git status     
  520  git lg
  521  git add src/
  522  git commit -m "restful api and portal"  //先commit到自己的本地branch
  523  git lg
  524  git fetch -p   //origin的commit都会拉到本地
  525  git lg
  526  git rebase origin/develop    //rebase到branch
  527  git status
  528  git lg
  529  git status
  530  git add src/
  531  git commit -m "rebase origin develop" //解决冲突,然后再commit
  532  git lg
  533  git diff 107b458 HEAD
  534  git diff HEAD~1 HEAD
  535  git lg
  536  git branch 
  537  git push origin yhh
  538  git branch
  539  git lg
  540  git branch aaa    //随便建立一个分支
  541  git lg
  542  git checkout yhh   //到自己的开发分支
  543  git reset --hard aaa  //然后强制替换
  544  git lg
  545  git push -f     //push 到 origin的自己开发分支
  546  git lg
  547  git checkout develop  //然后develop merge回来
  548  git merge yhh
  549  git push -f   //更新 origin/develop分支
  550  git lg

 

git 开发merge rebase 记录

原文:http://www.cnblogs.com/yanghuahui/p/5581556.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!