Git

Workflow

This is the workflow you should adopt for a typical feature.

  • Get the latest version of master
git pull origin master
  • Create your own feature branch, prefixed by your initials. Branches should be scoped to one feature and short-lived.
git checkout -b jd-feature
  • Discuss the feature with another developer, they should eventually review your code.

  • Do some work

  • Push to a remote branch, rebasing beforehand if you have redundant commits which should be squashed

  • Create a Pull Request

  • Ask/assign another developer to review the code. You should talk with them about the pull request whenever possible.

  • Reply to comments and make amends

  • The reviewer should merge into master once they give the request a :+1

  • Delete your feature branch

Menu