...
Clone a copy of your forked IGB repository onto your local computer. Make You will make changes to your local clone, commit them to your local repository, and then ultimately push your changes upstream to your fork.
To clone your fork, use git clone with the address of your fork. (Copy the address from the Overview page.)
Make a branch
However, before you get started, you should first create a new branch for the changes you intend to make. This will allow you to issue focused, low risk pull requests that can be easily merged with other branches of development.
To make a branch:
- First, synchronize your local copy of the code with the latest development branch using git checkout. For example, if the development branch is igb_8_3, you would execute:
Code Block | ||
---|---|---|
| ||
git checkout igb_8_3 |
- Next, create a branch for the changes you plan to make:
Code Block | ||
---|---|---|
| ||
git branch <BRANCH> |
where BRANCH is the name of the branch, e.g., IGBF-203, the name of a story in the IGB JIRA issue-tracking system.
Now, all commits will be associated with the branch you've just created. Commit your changes and then push them to your fork hosted on bitbucket.
Issue pull request
To request that your edits be incorporated into the main line of development:
...
A Pull request form will appear. Fill in the fields:
- Select your branch (see above) as the pull request source (left side)
- Select the current development branch as the pull request target .(right side)
- Fill in the Title and Description fields
- Request Reviewers
- Click Create pull request
...