Forking from the Repository and Making a Pull RequestΒΆ

Note

While the Basilisk repository can be pulled as a compressed folder and then compiled to run spacecraft simulation, this approach makes it more challenging to pull in code updates that are pushed to the Basilisk repository. The following instructions illustrate how to make a fork of the Basilisk repository. General instructions on how to do a fork on bitbucket.org can be found here.

  1. If needed, create your own bitbucket.org account

  2. Use a browser to go to the Basilisk Bitbucket Repository

  3. Click on the Plus sign in order to Fork the Basilisk Repository into your own account as illustrated in the following screen capture:

    ../../_images/fork-1.jpg
  4. Use the Pulling/Clonning documentation for cloning the forked repository into a preferred Git client (Sourcetree, GitKraken etc.)

  5. In order to have updates from Basilisk repository click Add Remote in the Git Client:

    ../../_images/fork-2.jpg
  6. Use Gitflow to start new feature, and work in your own Branch

  7. Push commits to origin (forked repository) and rebase your branch onto develop when necessary

  8. If the branch is ready to be reviewed, make sure there is a special Branch created for you in the Basilisk Repository to make a Pull Request to

  9. Make the pull request to the Branch in the Upstream (original Basilisk Repo) from bitbucket.org. Go to Branches section and create the pull request for your branch.

  10. If everything works, your branch will be merged into the Branch created for you in Basilisk Repository

  11. If there are revisions to make, create patch files for each commit you have and send them as separate files