Hi there! We’re thrilled that you’d like to contribute to this project. Your help is essential for keeping this project great and for making it better.
In general, contributors should develop on branches based off of main and pull requests should be made against main.
-
Fork and clone the repository.
git clone https://github.com/<username>/mini-sandbox.git
-
Create a new branch based on
main:git checkout -b <my-branch-name> main
-
Create an upstream
remoteto make it easier to keep your branches up-to-date:git remote add upstream https://github.com/qualcomm/mini-sandbox.git
-
Make your changes, add tests, and make sure the tests still pass.
-
Commit your changes using the DCO. You can attest to the DCO by commiting with the -s or --signoff options or manually adding the "Signed-off-by":
git commit -s -m "Really useful commit message"`
-
After committing your changes on the topic branch, sync it with the upstream branch:
git pull --rebase upstream main
-
Push to your fork.
git push -u origin <my-branch-name>
The
-uis shorthand for--set-upstream. This will set up the tracking reference so subsequent runs ofgit pushorgit pullcan omit the remote and branch. -
Submit a pull request from your branch to
main. -
Pat yourself on the back and wait for your pull request to be reviewed.