Git Flow: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
|||
| Zeile 1: | Zeile 1: | ||
Git Flow is a collection of Git extensions to provide high-level repository operations for [http://nvie.com/posts/a-successful-git-branching-model/ Vincent Driessen's Git Flow branching model] ([http://nvie.com/files/Git-branching-model.pdf PDF Diagram of GitFlow branching]). | Git Flow is a collection of Git extensions to provide high-level repository operations for [http://nvie.com/posts/a-successful-git-branching-model/ Vincent Driessen's Git Flow branching model] ([http://nvie.com/files/Git-branching-model.pdf PDF Diagram of GitFlow branching]). | ||
=== Vincent Driessen's Blog Post - "A successful Git branching model" === | |||
Vincent Driessen's Blog Post on Tuesday, January 05, 2010 titled "[http://nvie.com/posts/a-successful-git-branching-model/ A successful Git branching model]" is origin of what is called to today the Git Flow branching model. | |||
=== Vincent Driessen Git Flow Diagram === | === Vincent Driessen Git Flow Diagram === | ||
[[Datei:git-model@2x.png|center|575px]] | [[Datei:git-model@2x.png|center|575px]] | ||
| Zeile 7: | Zeile 12: | ||
*'''dev''' (Originally develop) - This is the branch were development work is started from and merge back into. | *'''dev''' (Originally develop) - This is the branch were development work is started from and merge back into. | ||
*'''test''' (Originally | *'''test''' (Originally release branches) - This is the branch where code gets tested in a environment identical to where it will be used. In Drupal this is where the the code from the dev branch and the database from the live site can be tested together to see if things work as expected. In the original branching model a new release branch was created for each new release. | ||
*'''live''' (Originally master) - This is the branch that is used on the live website. Pushing to this branch and then deploying results in the code going live. | *'''live''' (Originally master) - This is the branch that is used on the live website. Pushing to this branch and then deploying results in the code going live. | ||
*'''feature branches''' - Feature branches are checked out from the dev branch. For each feature a branch should be made then merged back into the dev branch as needed. | *'''feature branches''' - Feature branches are checked out from the dev branch. For each feature a branch should be made then merged back into the dev branch as needed. | ||
*''' | *'''hotfix branches''' - Hotfix branches are checked out from the live branch to fix a critical bug in the code on the live site. When finished, the hotfix branch needs to be merged back into the live branch, but also needs to be merged back into the dev branch, in order to safeguard that the hotfix is included in the next release as well. | ||
For both the feature and bugfix branches after the final merge back into dev the branch can be deleted. | For both the feature and bugfix branches after the final merge back into dev the branch can be deleted. | ||
Version vom 17. Dezember 2016, 23:01 Uhr
Git Flow is a collection of Git extensions to provide high-level repository operations for Vincent Driessen's Git Flow branching model (PDF Diagram of GitFlow branching).
Vincent Driessen's Blog Post - "A successful Git branching model"
Vincent Driessen's Blog Post on Tuesday, January 05, 2010 titled "A successful Git branching model" is origin of what is called to today the Git Flow branching model.
Vincent Driessen Git Flow Diagram
Branch Names
One important thing to note is that the branch names are only that names. There is nothing special about the branch names and you can setup the names to be what you want. I tried to use a set of branch names that were short but also described what the branch was used for in Drupal web development. The original names may make more sense when developing software code. I use the names from Shawn DeArmond's presentation at Bad Camp 2012 called "[ Development Workflow With Git]"(Blog Post) (PDF of Slides (slide 23 has the branch names))(Video of Presentation) as they made the most sense of any I saw. Here is a list of the branch names that I use with a reference to the branch name that Vincent used in his original article.
- dev (Originally develop) - This is the branch were development work is started from and merge back into.
- test (Originally release branches) - This is the branch where code gets tested in a environment identical to where it will be used. In Drupal this is where the the code from the dev branch and the database from the live site can be tested together to see if things work as expected. In the original branching model a new release branch was created for each new release.
- live (Originally master) - This is the branch that is used on the live website. Pushing to this branch and then deploying results in the code going live.
- feature branches - Feature branches are checked out from the dev branch. For each feature a branch should be made then merged back into the dev branch as needed.
- hotfix branches - Hotfix branches are checked out from the live branch to fix a critical bug in the code on the live site. When finished, the hotfix branch needs to be merged back into the live branch, but also needs to be merged back into the dev branch, in order to safeguard that the hotfix is included in the next release as well.
For both the feature and bugfix branches after the final merge back into dev the branch can be deleted.