GitHub workflow

Below is the workflow which I think is good for projects with git.

  1. Create a new issue.
  2. Create a new branch for the newly created issue.
  3. When the code changes are done then create a new pull request and start reviewing the changes.
  4. Tag the pull request with the issue so that when the pull request has been merged then the issue will be automatically closed.
  5. When the pull request has been approved and ready to merge then squash all the commits in the new branch and rebase it in master.

In this way the master branch commit history will be clean and easy to track the changes. For a single feature or bug there will be single commit in master branch.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s