Branches

From wikipost
Revision as of 01:57, 9 February 2024 by Admin (talk | contribs)
Jump to navigation Jump to search

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

git checkout develop


2.1 commit code

git add .
git commit -m <commit message>

2.2 upload commit to server

git push