(c) Quazardous [email protected]
Provides some "helper" commands for GIT
users to conform with http://nvie.com/posts/a-successful-git-branching-model/.
So bump_version
pays attention to GIT operations you may want to do on your master
or develop
branches.
It will display the GIT commands you should use to keep your branches in a correct state. In day to day use, you should just have to copy/paste these commands... It's not much but I've found it usefull and I like to share !
bump_version
assume that develop
and master
are correctly setup with origin
for git push
and git pull
.
composer require "quazardous/php-bump-version"
A basic version bumper.
After version bumping, bump_version bump
will display a list of GIT
commands you should use to complete your release.
vendor/bin/bump_version bump [options]
Example to bump a minor version (like 0.1.2 to 0.1.3):
vendor/bin/bump_version bump -p
More info on Semantic Versioning.
Merge for the lazy one.
Displays the commands to merge the current branch to the target branch and checks if you may have to pull/push.
vendor/bin/bump_version merge_into <target> [options]
Example to merge current branch to develop branch:
vendor/bin/bump_version merge_into develop
Merge for the lazy one.
Displays the commands to merge the target branch into the current branch and checks if you may have to pull/push.
vendor/bin/bump_version merge_from <target> [options]
Example to merge develop branch to current branch:
vendor/bin/bump_version merge_from develop
At first use, bump_version
will ask you to configure your project and will store this config in .bump-version.php
.
You can edit this file, it contains some bonus options :p