Skip to content

Latest commit

 

History

History
79 lines (44 loc) · 2.99 KB

ContributorGuide.md

File metadata and controls

79 lines (44 loc) · 2.99 KB

Contributor Guide

RROS Home

Hi! Welcome to RROS ~

Content

Create a Repository on GitHub

  1. It is highly recommended to use the template repository rros_template_repo when you create a new repository (should be private when developing).
  1. Add the "admin" team to your new repository.

Bind Local Repository with Remote Repository

Now you have already create a remote repository on the GitHub, the next step is to bind it with your local repository. There are three kinds of situation.

  1. You do not have a local repository
    This means you have not run git init in your target directory / folder.

    Now all you need to do is run

    git clone [your remote repository link]

    Then you can start coding in your local repository.

  2. You have init a local repository without any remote repository bound with it
    Run:
    git remote add origin [your remote repository link]

  3. You have init a local repository,but there is already a remote repository bound with it
    Save your work first
    Then run:
    git remote set-url origin [your NEW remote repository link]

Manage Branches and Pull Request

  1. For any new feature, we highly recommended you start a new branch and work on it (to make the main branch clean).

    For example, if you want to develop a feature "dance" on a robot. After talking with the project manager, you can add a new branch in the local repo, e.g.,"feature/dance" by using
    git checkout -b feature/dance
    Then you can work on it ( git pull / git rebase /git add / git commit)

  2. If you finished your work and the code has passed all the tests, push your branch to GitHub and make a pull request. After the pull request is approved, merge your branch to the main branch online, if necessary, address the conflicts.

  3. After updating the main branch, you can delete the feature branch on the GitHub and in your local repository

Make a Repository Public

  1. Please contact any member in the admin team so we can update the repository list.

  2. Delete the ".gitignore" file

  3. Write the README

  4. Add a ".rosinstall" file if necessary