Branches: Difference between revisions

From wikipost
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:


Git branch model:
===Git branch model===




Line 28: Line 28:


===1. create a new development branch from master===
===1. create a new development branch from master===

<pre>
git branch develop
</pre>

===2. develop code===

Revision as of 01:54, 9 February 2024

Git branch model

- develop

- feature

- release

- master


Some basic rules for successful development using branches:

- master only gets updated from release

- develop is the main working branch

- develop is the source for new releases and features

- features can only go back into develop


resource: https://nvie.com/posts/a-successful-git-branching-model/


1. create a new development branch from master

git branch develop

2. develop code