Skip to content

Realize a development

Nicolas Jourdan edited this page Oct 1, 2018 · 4 revisions

Gitflow

To start a development, the developer has to update his branch named develop.

git pull --all

When his developbranch is updated, the developer has to create a branch for the new development.

git checkout -b feature/2/update-something

or

git branch feature/2/update-something
git checkout feature/2/update-something

Please refer to create a branch to get more information about the branch naming.

During the development, the developer creates several commits to split his work. It is very important for the understanding of his development.

Add all current folder files to the staging area

git add .

Create a commit

git commit -m "2 - Added game service"

When the development is done and all the commits are created, the developer pushs his work.

git push

If it is the first push on the new branch, the error fatal: The current branch myBranchName has no upstream branch. occurs.

Don't panic, just run : git push --set-upstream origin myBranchName

The development is on the developer origin. The developer has to create a pull request.

Clone this wiki locally