Giter VIP home page Giter VIP logo

gitflow-in-azure-devops's Introduction

GitFlow for Azure DevOps

Introduction

This tool allows the implementation of the GitFlow methodology for branch management along with code review practices enforced by the usage of pull requests.

Since the pull requests are not a native git feature, we rely on Azure DevOps or Team Foundation Server to handle them. Also, please consider this tool only works on Windows operative system.

If you want to learn more about the GitFlow methodology, you can follow this link.

Prerequisites

The use of this toolset asumes you have completed the below steps:

  1. Install the latest az devops
  2. Create a personal access token
  3. Setup your credentials on VSTS CLI

Installation

  1. Clone the repository
  2. Move to the repo's main directory
  3. Run install.bat

Usage

Get help

At any moment you can run any of the below commands to get a cheatsheet for the tool:

$ git flow.help
$ git fh

Repository initialization

To configure a repository to use this tool, you need to execute any of the below commands, this should be done only once per repository:

$ git flow.init
$ git fi

Feature Branches

You can create a new feature branch by running any of the below commands:

$ git flow.feature.start $feature_branch_name
$ git ffs $feature_branch_name

When you're done with your changes, you can publish the branch to develop by running any of the below commands on a checked out feature branch, this will create a pull request on the server:

$ git flow.feature.publish
$ git ffp

Hotfix Branches

You can create a new hotfix branch by running any of the below commands:

$ git flow.hotfix.start $hotfix_branch_name
$ git fhs $hotfix_branch_name

When you're done with your changes, you can publish the branch to develop and master by running any of the below commands on a checked out hotfix branch, this will create two pull request on the server:

$ git flow.hotfix.publish
$ git fhp

Release Branches

You can create a new release branch by running any of the below commands:

$ git flow.release.start $release_branch_name
$ git frs $release_branch_name

When you're done with your adjustments, you can publish the branch to develop and master by running any of the below commands on a checked out release branch, this will create two pull request on the server:

$ git flow.release.publish
$ git frp

In cases when you're certain that no adjustments are needed before the release, you can perform the two above actions at the same time by running any of the below commands:

$ git flow.release.all $release_branch_name
$ git fra $release_branch_name

Other utilities

When you want to do a local cleanup and remove all the branches already merged to develop and master, you can run the below command:

$ git general.clean
$ git gcl

When you want to force the application of the rules in the .gitignore file on an existing repository, you can run the below command:

$ git general.ignore.force
$ git gif

gitflow-in-azure-devops's People

Contributors

aruanoguate avatar leandromoraislmsis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.