Git and GitFlow's general workflow

Git general workflow:

  • Get the latest code from the remote repository
  • Create a feature branch for the current task
  • Do small commit with high frequency in the feature branch。
  • Some urgent task comings, saving the current task by committing to feature branch or using git stash
  • Create another feature branch for the urgent task
  • Design and commit for the urgent task, then merge to the master branch and push to remote, after that delete the feature branch
  • Back to the original feature branch, keep designing。
  • When everything is done, merge to master and push to remote。
  •  Donot change or delete every commit’s comment in remote repository。So wecan track every commit.

Below is the updated workflow by git flow:

  • Git flow feature start bugfix001
  • Do actual fixing
  • Do commit
  • When everything is ready, using “eg squash” to merge all the commits to only one commit.
  • Switch to the develop branch, using “git svn rebase” to sync the branch with remote repo.
  • Switch to the bugfix001 branch, using “git flow feature finish”.
  • If no conflict, using “git svn dcommit”
  • Ifconflict, fix and dcommit.

The “eg squash” command is from EasyGit, the help info canbe gotten by “eg help squash”.


评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值