Skip to content

Instantly share code, notes, and snippets.

View alienlebarge's full-sized avatar
💾
:wq

Cédric Aellen alienlebarge

💾
:wq
View GitHub Profile
# Get a feature published by another user.
git flow feature pull origin MYFEATURE
# You can track a feature on origin by using
git flow feature track MYFEATURE
# To start a release, use the git flow release command. It creates a release branch created from the 'develop' branch.
# You can optionally supply a [BASE] commit sha-1 hash to start the release from. The commit must be on the 'develop' branch.
git flow release start RELEASE [BASE]
git flow release publish RELEASE
# You can track a remote release with the command
git flow release track RELEASE
git flow release finish RELEASE
# Don't forget to push your tags with
git push origin --tags
# The version argument hereby marks the new hotfix release name. Optionally you can specify a basename to start from.
git flow hotfix start VERSION [BASENAME]
git flow hotfix finish VERSION
+-------+
+-|init |-+
+--------+ | +-------+ | +-------+ +----+
|git flow|-+-|feature|-+-+-|start |-+-|NAME|
+--------+ | +-------+ | | +-------+ | +----+
+-|release|-+ +-|finish |-+
| +-------+ | | +-------+ |
+-|hotfix |-+ +-|publish|-+
+-------+ | +-------+ |
+-|pull |-+