Show Menu
Cheatography

Git Flow Cheat Sheet by

SImple Git Flow cheatsheet

Git Flow New Project

git clone <us­er>­@<h­ost­>:<­rep­osi­tor­y>
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 <us­er>­@<h­ost­>:<­pro­jec­t>
clone repo
cd <pr­oje­ct>
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 <fe­atu­re>
pull feature to your local repo

Create Feature Branch

git remote show origin
outputs: current features on remote repository
git flow feature start <fe­atu­ren­ame>
creates feature
git flow feature publish <fe­atu­ren­ame>
pushes feature to remote repository
               
 

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