-
Notifications
You must be signed in to change notification settings - Fork 12
Home
Branches
- release branch has releases
- develop branch has development commits
- developers work on their own branches
Development Workflow
Developers pull develop branch, copy it to a new branch (eg. dev1guy-description-of-feature). When feature or bugfix is done, create a pull request to the develop branch. The new branch is then rebased on top of develop branch, commits added to the develop branch, the new branch is removed and the pull request is closed.
In terms of commands it is something like.
- git clone [email protected]:ENSL/NS.git
- git checkout develop
- git checkout -b dev1guy-new-movement develop
- (add changes)
- git commit -a
- git push origin
- (go to website and create a pull request from new branch to develop)
When developing you want to run rebase before creating the pull request to make sure there are no conflicts. Run
git rebase master
before pushing the develop if develop has changed at all after creating the new branch.
When develop branch is ready for release, we merge develop to release branch and tag the merge commit with a version. Release is created through the website.
- No binary blobs to the git tree
- No temporary or backup files
- Do not include extra libraries unless absolutely necessary
- Use LF line endings (Linux-style) in repository. Then git can checkout Windows-style (CRLF) when it needs them and commit LF line endings back to repo. This should be transparent to the developer. The .gitattributes and .gitignore files have been configured to enforce this style.