You are on page 1of 1

Git Flow Cheat Sheet

by vmalkani via cheatography.com/4159/cs/857/

Git Flow New Project Git Flow Existing Project Create Feature Branch

git clone clone a new repository git clone <​use​r>@​<ho​st>​: clone repo git remote show outputs: current features
<​use​r>@​<ho​st>​: (use gitlab to create a <p​roj​ect​> origin on remote repository
<r​epo​sit​ory​> new reposi​tory)
cd <​pro​jec​t> change to new git flow feature start creates feature
cd repo change to repo directory repo directory <​fea​tur​ena​me>

git flow init -d initialize git flow git flow init -d initialize git flow git flow feature pushes feature to
publish remote repository
git push -u origin push new develop git pull origin develop pull develop
<​fea​tur​ena​me>
develop branch that was created branch
to remote repo git branch --set-​ups​tream track remote
git branch -- track develop develop origin​/de​velop develop branch
set-​ups​tream
develop Get a Feature Branch
origin​/de​velop
git remote show origin outputs: features,
listed as features/*

git flow feature pull pull feature to your


origin <​fea​tur​e> local repo

By vmalkani Published 21st February, 2013. Sponsored by Readability-Score.com


cheatography.com/vmalkani/ Last updated 14th March, 2017. Measure your website readability!
Page 1 of 1. https://readability-score.com