Git workflow tips

戏子无情 提交于 2019-12-06 06:14:55

As Amber said :

First, let's just make something clear: there is no single "correct" workflow for Git. There are merely workflows that work - and specifically, workflows that work for you.

There is a good post on a blog about a good git workflow :

A successful Git branching model

You should read this post, it's really cool and you can adapt the workflow to your needs. In a nutshell, the workflow proposed by the blog post schematized like this :

I have adopted this workflow for a while. I try to always respect the workflow, whether it's a teamwork or working alone.

First, let's just make something clear: there is no single "correct" workflow for Git. There are merely workflows that work - and specifically, workflows that work for you.

The workflow you have outlined is typically referred to as a "feature branch" workflow (where you create a branch to work on a given feature/fix/whatever, and then merge it back), and is a perfectly legitimate workflow.

If you only ever work on a single feature at a time, you could choose to simply commit directly to master, then push the updated version. This becomes difficult, however, if you're working on multiple different features simultaneously (whereas a feature branch workflow handles many simultaneous features gracefully).

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!