码迷,mamicode.com
首页 > 其他好文 > 详细

git workflow

时间:2014-11-19 20:27:40      阅读:194      评论:0      收藏:0      [点我收藏+]

标签:for   on   ad   new   c   file   public   br   git   

1) fork map-matcher.git repo
2) add ssh-keygen public key to gitlab
3) clone repo
  git clone git@git.xiaojukeji.com:kezunlin/map-matcher.git
4) create branch proj2dist and add new files
  git checkout -b branch-proj2dist
  git add 1.txt
  git commit -m "add 1.txt"

5) push branch to remote branch
  git remote
  # origin
  git push origin branch-proj2dist:branch-proj2dist

6) update branch files
  git add 2.txt
  git commit -m "add 2.txt"
  git push origin branch-proj2dist:branch-proj2dist

git workflow

标签:for   on   ad   new   c   file   public   br   git   

原文地址:http://www.cnblogs.com/hellogiser/p/git-workflow.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!