Workflow
Working on a project
Clone the project if you haven’t already:
git clone git@github.com:author/some-repo.git
Change directories so you are in the project directory.
Create a branch for your feature:
git checkout -b feature/TN-1337_feature_name
In this case, the ticket number for this feature is TN-1337. If provided, always reference the ticket number in any commit or branch name.
After creating the branch, create pull request
The Pull Request will merge into develop
Name the PR like so: “Draft: TN-1337 New feature X”
When the Pull Request is ready for review, remove the “Draft: “-prefix
Commits
Commit often and commit small, coherent parts of the code (“atomic commits”).
Commit more often during the day and keep commits smaller. The goal should be “atomic commits” that can be reverted easily, without side effects. Do not mix topics in commits.
Provide a commit note that describes the change. That makes it easier to keep track of what is being done.