git clone <repo:forked>
cd repo
git remote add upstream <repo:forked from>git checkout dev
git pull upstream dev- Create a new topic branch (i.e. “issue[number]”, Example: “issue69”)
git checkout -b issue[number]- Commit changes
git add .
git commit -m "commit message"- Push origin
git push origin(your repo) issue[number]- Fetch the Upstream/Dev
git fetch upstream dev- Merge upstream/dev with the issue[number] branch
git checkout issue[number]
git merge upstream/dev- After fixing conflicts, run all test to ensure nothing breaks and then just run
git add .- Push to forked branch:
git push origin(forked br.) issue[number]- Open a Pull Request with a clear title and description against the dev branch. Please make sure, your pull request have only your changes necessery files. Check it by command
git diff issue[number] upstream/dev
// Or
git diff filename.md- Remove the issue branch after successful pull request
git branch -D issue[number]
git push origin :issue[number]- Master branch always deployable. So, please never commit on master br. Introducing GitFlow
- Test before you push. Do not push half-done work.
- Features are developed in branches and merged into dev branch.
- Create a pull request in
devbranch. - Code will be reviewed by peers before the merge.
Commit message should be brief but descriptive enough to convey the message of what has been done in this commit, for example
- Add delete user option in the dashboard
- Replace jQuery onReady listener with plain JS; fixes #13
- Add issue number in final commit message when the task is complete
- Tasks will be created as an issue with appropriate label and milestone, also be available in project board of the repository.
- By default tasks will be at
Backlogcolumn. - You can self-assign yourself to a task or task can be assigned to you.
- When a member start a task, the card should be moved to
In Progresscolumn. - When someone test a task other than the original contributor after task is complete it should be placed in
In Review. - When a task is reviewed by a peer the task should be placed in
Donecolumn. - Only one member should work in a single task.
Thank you!