Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
added description for checking out a specified branch
  • Loading branch information
sandritter authored Sep 13, 2016
1 parent 76f22b5 commit d133163
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,15 @@ You can set the `--evaluate` option to find out which tag/version will be create
php bin/tagging git https://github.com/company/package.git /path/to/local/checkout --evaluate


### Tagging for Branches
### Tagging for branches

Sometimes we even need to tag branches, e.g. after you have pushed a bugfix to your branch instead of pushing it into master. For this case, its enough to set the option with branch name: `--branch`.

php bin/tagging git https://github.com/company/package.git /path/to/local/branch-checkout --branch=myBranchName
php bin/tagging git https://github.com/company/package.git /path/to/local/branch-checkout --branch=myBranchName


### Checking out a specified branch

In case you have any changes that need to be commited and pushed to a specific branch you have to checkout the specific branch before commiting and pushing. This can be achieved by adding the option: `--switch-branch`. But to be able to check out a specific branch, you have to specify the branch name with `--branch` too.

php bin/tagging git https://github.com/company/package.git /path/to/local/branch-checkout --branch=myBranchName --switch-branch

0 comments on commit d133163

Please sign in to comment.