Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 11

...

where ADDRESS is the address of your fork on Bitbucket. To get the address of your fork, look at the top the top right of your fork's home page on Bitbucket.

 

If you wish to use a GUI interface for cloning your fork instead of the command line, we recommend using SourceTree, a free Git & Mercurial client available on Windows or Mac.

To clone your fork using SourceTree, download and run SourceTree and then select the Clone/New button near the top of the program.

Image Removed

In the Clone/Add/Create Repository window enter the URL of your fork in the Source Path/URL textbox. Enter your destination path in the Destination Path textbox and then click the Clone button to clone your fork on your local computer.

Image Removed

Make a branch

Before you start making changes to your local clone, 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.

...

Now, all commits will be associated with the branch you've just created. Commit your changes to your local repo and then push them to your fork hosted on bitbucket.

 

To make a branch using SourceTree, select the Checkout button near the top of the program to open the Checkout window. From here, select the Checkout New Branch tab and use the Checkout remote branch drop-down menu to select the remote branch you wish to checkout. If you wish to checkout the branch for IGB 8.5.0 you would select origin/igb_8_5. It may be helpful to enter a name for the branch in the New local branch name textbox to indicate the purpose of the branch. Click OK to checkout the new branch.

Image Removed

You can now see all your branches. The current branch is indicated with bold font and a check mark.

Image Removed

Changing remote repository

You can also pull changes made by other developers from their forks by adding multiple remotes.

To do this using SourceTree, select Add Remote... under the Repository menu to open the Repository Settings window. From here, click the Add button to add a new remote repository. Enter a name for the remote repository being added and enter the URL/ Path for the remote. Confirm that you want to add the remote repository by clicking OK. Your remote repository can be seen under the list of remotes in SourceTree's main window.

Image Removed

Once the remote repository has been added you need to fetch to get the content from the repository.  To fetch, select Fetch from the Repositorymenu. After fetching, you can check out any branch from the remote repository.

Issue pull request

To request that your edits be incorporated into the main line of development:

...