Skip to content

Latest commit

 

History

History
84 lines (52 loc) · 1.71 KB

05_git_workflow.md

File metadata and controls

84 lines (52 loc) · 1.71 KB

Git Style

(Kept from previous group [paf22])

Summary: This page gives an overview over different types of git workflows to choose from.


Author

Josef Kircher

Date

07.11.2022

Prerequisite


Git workflow

Git Feature Branch

Git Feature

Branch strategy


Two types of branches:

  • Main: contains production ready code
  • Feature: new branches based on main for each feature

Git style

Branch naming


Feature branch: issue number-description-of-issue (separator: '-') generated by Github automatically

For example

Issue #28 called "Setup dev environment"

=> 28-setup-dev-environment

Note: You won't need to manually create these branch names in most cases - GitHub does it for you, when you create a new branch from the issue you are working on.

Commit messages


Git commands cheat sheet


https://education.github.com/git-cheat-sheet-education.pdf

Sources

https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow

https://www.atlassian.com/git/tutorials/comparing-workflows/feature-branch-workflow

https://www.gitkraken.com/learn/git/best-practices/git-branch-strategy