> For the complete documentation index, see [llms.txt](https://graygzou.gitbook.io/how-to/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://graygzou.gitbook.io/how-to/tools/git/git_flow_example.md).

# Git\_Flow\_Example

## Before even cloning the repository

## Cloning the repository

## Workflow

### Programmers

#### Master branch (mainline) `PUBLIC` `Protected`

* Description: At any time, the master branch contains a stable state of the project.&#x20;

  You should be able to build from it, all tests must pass and no errors should be visible (at least crash errors or serious bugs that stop the game entirely. *Hotfix branches* are here for what's left)
* Constraints: This branch is protected. This mean, unless you have a specific role in the project, you should not be able to commit, merged, revert, etc. directly from this branch.

  Only certains persons will be able to access this branch. In most cases, you should never interact with it directly anyway.
* Input branches: *Release branches* and *Hotfix branches* will be `merged` into this branch.
* Output branches: *Hotfix branch*.

  **Development branch (develop) `Public`**
* Description: This branch replace the *Master branch* in the daily development process.

  Just like the *Master branch*, you should be able to build from it, all tests must run, etc.&#x20;

  But some deeper errors that hasn't been found can be discover here (we're still humans). *Hotfix branches* will take care of that.
* Constraints: Before merging any features or bugfix into this branch, you should be sure the project is stable (see above).
* Input branches: *Feature branches* and *Release branch* will be `merged` into it.
* Output branches: *Hotfix branch*.

  **Feature branch (feature/xxxx) `Public`**
* Description: This branch is made to work on a features of the project. Since you might not be the only one working on the feature before his final state, you should be careful of what you do. The historic of a feature should be one straight line.
* Constraints: Todo

### Artists

TODO

\
Ce(tte) œuvre est mise à disposition selon les termes de la [Licence Creative Commons Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International](http://creativecommons.org/licenses/by-nc-sa/4.0/).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://graygzou.gitbook.io/how-to/tools/git/git_flow_example.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
