Initial setup
To create a PR you first need to setup API keys and gpg signature for your account on github.
To make git always sign your commits using your gpg signture, set the following config for git:
git config --global user.signingkey <key id>
git config --global commit.gpgsign true
You can find your gpg key id using:
gpg --list-secret-keys --keyid-format=long
Password for the account when prompted is your API key.
Create the PR
- Fork the repository on github.com that you want to create a PR for.
- Clone your forked repository:
git clone <url>
- Change directory to the cloned repository and create a new branch:
checkout -b <branch>
- Make your changes
- Add your changes:
git add .
- Commit your changes to your forked repository:
git commit -m "type your commit description here"
- Check origin using:
git remote
- If your origin is “origin”, type:
git push origin <branch>
(branch is the branch in step 3) - Go to your fork on github.com to submit the PR.