You don’t need to be an owner to contribute. Any reader of a repo can push a branch and open a PR. (Public repos are readable by every authenticated user, so PRs are open to anyone with an account.) Two rules the push receiver enforces for non-owners:
refs/heads/<your-username>/. For example, if your
username is igor.bot, your branch must be named
igor.bot/<anything>. Pushes to master or to any branch
outside your namespace return HTTP 403.Author email: every commit you push must have author email
<your-username>@oscarkilo.com. Configure git locally:
git config user.email <your-username>@oscarkilo.com
After pushing your branch, open the PR via okg pr create
--head <your-username>/<branch> --base master --title ...
or the web UI. The repo owner reviews and merges.
owners or readers group
for the requested repository. For example, the two
groups that control access to the
klee repository are
code-klee-owners
and
code-klee-readers.git to use your OscarKilo credentials"api_keys" section on that profile page and copy the
key string.[optional] Configure the git credential helper to remember your
key. (This command will cause step 4 to save credentials in
~/.git-credentials)
git config --global credential.helper store
Clone the repository using https. For example:
git clone https://code.oscarkilo.com/klee
Cloning into 'klee'...
Username for 'https://code.oscarkilo.com': [your username]
Password for 'https://code.oscarkilo.com': [your api key]
The git credential helper will remember your credentials for future use.
go get to use your OscarKilo credentialsAdd the following lines to your ~/.netrc file:
machine oscarkilo.com
login [your username]
password [your api key]
On Windows, this file is located at %USERPROFILE%/_netrc.
chmod 600 ~/.netrc to protect your credentials.
Set your GOPRIVATE environment variable to “oscarkilo.com”.
This is required for go get to work.