Chan Chen Coding...

          Workflow example with GIT

          Refter to: http://stackoverflow.com/questions/315911/git-for-beginners-the-definitive-practical-guide/5968622#5968622

          Workflow example with GIT.

          Git is extremely flexible and adapts good to any workflow, but not enforcing a particular workflow might have the negative effect of making it hard to understand what you can do with git beyond the linear "backup" workflow, and how useful branching can be for example.

          This blog post explains nicely a very simple but effective workflow that is really easy to setup using git.

          quoting from the blog post: We consider origin/master to be the main branch where the source code of HEAD always reflects a production-ready state:

          The workflow has become popular enough to have made a project that implements this workflow: git-flow

          Nice illustration of a simple workflow, where you make all your changes in develop, and only push to master when the code is in a production state:

          simple workflow

          Now let's say you want to work on a new feature, or on refactoring a module. You could create a new branch, what we could call a "feature" branch, something that will take some time and might break some code. Once your feature is "stable enough" and want to move it "closer" to production, you merge your feature branch into develop. When all the bugs are sorted out after the merge and your code passes all tests rock solid, you push your changes into master.

          During all this process, you find a terrible security bug, that has to be fixed right away. You could have a branch called hotfixes, that make changes that are pushed quicker back into production than the normal "develop" branch.

          Here you have an illustration of how this feature/hotfix/develop/production workflow might look like (well explained in the blog post, and I repeat, the blog post explains the whole process in a lot more detail and a lot better than I do.

          Git workflow example



          -----------------------------------------------------
          Silence, the way to avoid many problems;
          Smile, the way to solve many problems;

          posted on 2012-04-13 11:23 Chan Chen 閱讀(273) 評(píng)論(0)  編輯  收藏 所屬分類: Git


          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 绥棱县| 江阴市| 双江| 仁寿县| 衡南县| 台北市| 个旧市| 无锡市| 通山县| 正安县| 呼图壁县| 清流县| 洛川县| 同仁县| 通道| 芷江| 莫力| 尉犁县| 临泽县| 镇远县| 邵东县| 沈阳市| 杭锦后旗| 娱乐| 平武县| 嵊泗县| 察隅县| 石渠县| 光泽县| 蒲城县| 双鸭山市| 会东县| 德令哈市| 庆安县| 乐陵市| 兴宁市| 会泽县| 洛川县| 旬阳县| 赤峰市| 抚顺市|