-
Fork the [rstgroup/behat-oauth2-context] repository on github.
-
Clone your fork locally and enter it (use your own github username in the statement below)
$ git clone git@github.com:rstgroup/behat-oauth2-context.git $ cd behat-oauth2-context
-
Add a remote to the canonical Behat OAuth2 context repository, so you can keep your fork up-to-date:
$ git remote add api-rest ssh://git@github.com:rstgroup/behat-oauth2-context.git $ git fetch behat-oauth2-context
Working on Api REST Library using gitflow workflow is obligatory.
A typical workflow will then consist of the following:
- Create a new local branch based off your
master
ordevelop
branch (see What branch to issue the pull request against?). - Switch to your new local branch. (This step can be combined with the previous step with the use of git checkout -b.)
- Do some work, commit, repeat as necessary.
- Push the local branch to your remote repository.
- Send a pull request.
- For fixes against the stable release, issue the pull request against the
master
branch. - For new features, or fixes that introduce new elements to the public API (such as new public methods or properties), issue the pull request against the
develop
branch.