Skip to content

Instantly share code, notes, and snippets.

@marianposaceanu
Last active April 14, 2016 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marianposaceanu/391fe8a6bffa0e057300bd98fdc9a4e9 to your computer and use it in GitHub Desktop.
Save marianposaceanu/391fe8a6bffa0e057300bd98fdc9a4e9 to your computer and use it in GitHub Desktop.
Git: naming branches

Examples

I'm working on a feature in ticket 59:

git co -b feature/59/add-filtering

I'm working on a bug:

git co -b bug/101/template-error

For multiple tickets:

git co -b feature/101-104/multiple-tickets

For general purpose

git co -b feature/-/im-not-sure

The basic syntax is:

{type-of-ticket}/{ticket-number}/{small-description}

notes:

Please keep {small-description} to around 2..4 words for readability purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment