Cheatography
https://cheatography.com
SImple Git Flow cheatsheet
Git Flow New Project
git clone <user>@<host>:<repository> |
clone a new repository (use gitlab to create a new repository) |
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-upstream develop origin/develop |
track develop |
|
|
Git Flow Existing Project
git clone <user>@<host>:<project> |
clone repo |
cd <project> |
change to new repo directory |
git flow init -d |
initialize git flow |
git pull origin develop |
pull develop branch |
git branch --set-upstream develop origin/develop |
track remote develop branch |
|
|
Get a Feature Branch
git remote show origin |
outputs: features, listed as features/* |
git flow feature pull origin <feature> |
pull feature to your local repo |
Create Feature Branch
git remote show origin |
outputs: current features on remote repository |
git flow feature start <featurename> |
creates feature |
git flow feature publish <featurename> |
pushes feature to remote repository |
|
Created By
Metadata
Favourited By
and 9 more ...
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets