Show Menu
Cheatography

Git Flow Cheat Sheet by

SImple Git Flow cheatsheet

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
               

Help Us Go Positive!

We offset our carbon usage with Ecologi. Click the link below to help us!

We offset our carbon footprint via Ecologi
 

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