Skip to content

Ideas on branching for collaborations #11

@andrealaw

Description

@andrealaw

Hi everyone, to avoid crashing between commits, let's setup some branches.

Suggestions

  1. By person (from @anglyeds)
  2. By feature (from @gregorywong)

Based on our current status, indeed it could be a mix of both. First group by feature and hotfix, followed by a person's name. Then, merge commits between the team members and merge it to the feature branch.

Sample branch and subbranch names

v0.1-dev

  • feature-navbar
    --feature-navbar/greg
    --feature-navbar/jeff
  • feature-event
  • feature-about
  • hotfix-1
  • hotfix-2 (where 2 is the issue number assigned by Github on the issue page)

Some ideas

  • keep the branch names short and meaningful
  • Urgency: hotfix > feature
  • hotfixes are commited to the master branch directly
  • features are commited to the version branch, e.g. feature-navbar -> v0.1-dev
  • master branch is the production version for a Github page
  • completed branches will be merged into their parent branches and get removed (commit history will be preserved with Git)

Sample commit message

Always use the original verb form, e.g. add/move/update:

Move How to Contribute to documentation and update it (#7817)

where #7817 is the issue number you can find on the issue page for each item.

Some reference

https://www.atlassian.com/git/tutorials/using-branches (Official)
https://github.com/agis/git-style-guide
https://gist.github.com/digitaljhelms/4287848

What do you guys think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions