Difference between revisions of "Git-flow"

Line 20: Line 20:
  
 
Git flow works on macOS, Linux and Windows
 
Git flow works on macOS, Linux and Windows
 +
 +
==macOS==
 +
'''[[Homebrew]]'''
 +
<source>
 +
$ brew install git-flow-avh
 +
</source>
 +
 +
'''[[Macports]]'''
 +
<source>
 +
$ port install git-flow-avh
 +
</source>
 +
 +
==Linux==
 +
<source>
 +
$ apt-get install git-flow
 +
</source>
 +
 +
 +
==Windows (Cygwin)==
 +
<source>
 +
$ wget -q -O - --no-check-certificate https://raw.github.com/petervanderdoes/gitflow-avh/develop/contrib/gitflow-installer.sh install stable | bash
 +
</source>
 +
 +
You need wget and util-linux to install git-flow.
 +
 +
=Hello World with git-flow=
 +
Git flow needs to be initialized in order to customize your project setup.
 +
 +
'''Initialize'''
 +
Start using git-flow by initializing it inside an existing git repository:

Revision as of 10:22, 12 April 2020

official resource :

https://danielkummer.github.io/git-flow-cheatsheet/

What is git-flow

git-flow are a set of git extensions to provide high-level repository operations for Vincent Driessen's branching model.


This document shows the basic usage and effect of git-flow operations.

Basic tips

  • Git flow provides excellent command line help and output. Read it carefully to see what's happening...
  • The macOS/Windows Client Sourcetree is an excellent git gui and provides git-flow support
  • Git-flow is a merge based solution. It doesn't rebase feature branches.

Installation

You need a working git installation as prerequisite. git

Git flow works on macOS, Linux and Windows

macOS

Homebrew

$ brew install git-flow-avh

Macports

$ port install git-flow-avh

Linux

$ apt-get install git-flow


Windows (Cygwin)

$ wget -q -O - --no-check-certificate https://raw.github.com/petervanderdoes/gitflow-avh/develop/contrib/gitflow-installer.sh install stable | bash

You need wget and util-linux to install git-flow.

Hello World with git-flow

Git flow needs to be initialized in order to customize your project setup.

Initialize Start using git-flow by initializing it inside an existing git repository: