Show Menu

Git Flow Cheat Sheet by

SImple Git Flow cheatsheet
git     version     control     github     vcs

Git Flow New Project

git clone <­use­r>@­<ho­st>­:<r­epo­sit­ory­>
clone a new repository (use gitlab to create a new reposi­tory)
cd repo
change to repo directory
git flow init -d
initialize git flow
git push -u origin develop
push new develop branch that was created to remote repo
git branch --set-­ups­tream develop origin­/de­velop
track develop
 

Git Flow Existing Project

git clone <­use­r>@­<ho­st>­:<p­roj­ect­>
clone repo
cd <­pro­jec­t>
change to new repo directory
git flow init -d
initialize git flow
git pull origin develop
pull develop branch
git branch --set-­ups­tream develop origin­/de­velop
track remote develop branch
 

Get a Feature Branch

git remote show origin
outputs: features, listed as features/*
git flow feature pull origin <­fea­tur­e>
pull feature to your local repo

Create Feature Branch

git remote show origin
outputs: current features on remote repository
git flow feature start <­fea­tur­ena­me>
creates feature
git flow feature publish <­fea­tur­ena­me>
pushes feature to remote repository

Download the Git Flow Cheat Sheet

1 Page
//media.cheatography.com/storage/thumb/vmalkani_git-flow.750.jpg

PDF (recommended)

Alternative Downloads

Share This Cheat Sheet!

 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Git Cheat Sheet