4-git-workflows
4-git-workflows
Agenda:
• Git workflow: Working with Local Repository
• Git workflow: Working with Central Repository
• Git workflow: Working with Feature Branch
• Git workflow: Working with Gitflow
• Git workflow: Working with Forking
Git workflow: Working with Local
Repository
Git workflow: Working with Local Repository
4
Git workflow: Working with Local Repository
Git workflow: Working with
Central Repository
Git workflow: Working with Central Repository
Git workflow: Working with Central Repository
Git workflow: Working with Central Repository
Git workflow: Working with Central Repository
Git workflow: Working with Central Repository
Git workflow: Working with
Feature Branch
AKA Git pull request workflow
Git workflow: Working with Feature Branch
Pull request is a dedicated forum for discussing the proposed feature. If there are
any problems with the changes, teammates can post feedback in the pull request
and even tweak the feature by pushing follow-up commits. All of this activity is
tracked directly inside of the pull request.
Essentially a PR should be closed after a Code Review with others developers. Code
review is a major benefit of pull requests. You can think of pull requests as a
discussion dedicated to a particular branch.
Working with Feature Branch: Pull Request
Working with Feature Branch: Pull Request
Git workflow: Fork
AKA Git pull request workflow
Working with Fork Workflow
Working with Fork Workflow
Git workflow: Working with Gitflow
Git workflow: Working with Gitflow
Gitflow is a Git workflow implementing tool that helps with continuous
software development and implementing DevOps practices. It was first
published and made popular by Vincent Driessen at nvie.
Gitflow is ideally suited for projects that have a scheduled release cycle
and for the DevOps best practice of continuous delivery.
Git workflow: Working with Gitflow
This workflow doesn’t add any new concepts or commands beyond
what’s required for the Feature Branch Workflow.
Of course, you also get to leverage all the benefits of the Feature Branch
Workflow: pull requests, isolated experiments, and more efficient
collaboration.
Git workflow: Working with Gitflow
Gitflow is really just an abstract idea of a Git workflow. This means it dictates what
kind of branches to set up and how to merge them together.
The git-flow toolset is an actual command line tool that has an installation process.
After installing git-flow you can use it in your project by executing git flow init. Git-
flow is a wrapper around Git.
Types of branch in Gitflow
- Major release - main
- development - develop
- feature
- Minor release - release
- hotfix
- support
Working with Gitflow: Develop & Main Branches
Working with Gitflow: Feature Branches
Working with Gitflow: Release Branches
Working with Gitflow: Hotfix Branches
Git workflow: Working with Gitflow
The git flow init command is an extension of the default git init command and
doesn't change anything in your repository other than creating branches for you.
https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow
Release Branches
Release Branches: Finish