Skip to content

Instantly share code, notes, and snippets.

@bil0u
Last active June 19, 2019 14:05
Show Gist options
  • Save bil0u/bf43ba20367c89232c792bbecaf21a41 to your computer and use it in GitHub Desktop.
Save bil0u/bf43ba20367c89232c792bbecaf21a41 to your computer and use it in GitHub Desktop.
[Git flow commands] Some useful git flow commands #gitflow #cheatsheet

INITIALIZE

Start using git-flow by initializing it inside an existing git repository

git flow init

FEATURES

Start/finish developing a new feature

git flow feature start <feature_name>
git flow feature finish <feature_name>

Publish a feature to the remote server so it can be used by other users

git flow feature publish <feature_name>

Get a feature published by another user

git flow feature pull origin <feature_name>

Track a feature on origin

git flow feature track <feature_name>

RELEASES

To start a release, use the git flow release command

git flow release start <release_name> [BASE_COMMIT]

Publish the release branch after creating it to allow release commits by other developers

git flow release publish <release_name>

Track a release on origin

git flow release track <release_name>

HOTFIXES

Like the other git flow commands, a hotfix is started with

git flow hotfix start <version> [BASENAME]

By finishing a hotfix it gets merged back into develop and master. Additionally the master merge is tagged with the hotfix version.

git flow hotfix finish <version>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment