Here are a few guidelines that will help you along the way.
[Contributor name]/[Project acronym]-[Jira task id]/-[task description]
git checkout -b rulo/DSGN-001/select-component- rulo = Contributor name
- DSGN = Project acronym
- 001 = Jira task id
- select-component = task description
[Type] (optional scope): [description]
[optional body]
[optional footer(s)]
git commit -m 'feat(button): create loader package'- Type*- feat (introduces a new feature to the codebase )
- **Optional scope **- button
- Description- create loader package
Learn more about conventional commit here
- Make sure you created an Jira task related to it.
- Make sure you're following the branches section recommendations
- Make sure you're following the commits section recommendations
1- Create a local branch based off master
$ git checkout master
$ git pull
$ git checkout -b <branch-name>
$ git push --set-upstream origin <branch-name>2- When you've staged the changes, commit them.
$ git status
$ git commit -m "The message goes here"3- Share your branch.
$ git push origin <branch-name>4- Submit a GitHub Pull Request and Get someone else to Code Review.
5- After approved, you can now merge the branch. Make sure you only have the commits you want to go into master, then use squash and merge of GitHub option in your pull request.