...
Using
Creating a personal fork
The first step in the Skara workflow is to To create a personal fork of an existing OpenJDK repository. To create personal fork
Code Block |
---|
$ git fork https://github.com/openjdk/<REPO> |
upstream repository, run the command git fork <URL>
. For example, to create a personal fork of the jdk repository, run:
Code Block | ||
---|---|---|
| ||
$ git fork https://github.com/openjdk/jdk |
The above command git fork
will also clone your personal fork to a local repository on your computer.
...
Publish a
...
local branch
To publish a local branch to a remote repository, run the following command:
Code Block | ||
---|---|---|
| ||
$ git publish |
Creating a pull request
To create a pull request first create a create a pull request first create a personal fork, then create a local branch in the local clone of your personal fork:
Code Block | ||
---|---|---|
| ||
$ git checkout -b JDK-8123456 |
Do your work and then create a commit:
Code Block | ||
---|---|---|
| ||
$ git commit -m "Fixed a race condition" |
Finally create your pull request. Make changes to a number of files, then create a commit. Publish your local branch and then create a pull request from your published branch:
Code Block | ||
---|---|---|
| ||
$ git pr create --jcheck --publish |
Notes:
- If you want to run jcheck on your changes before the pull request is created, pass the flag
--jcheck
togit pr create
- If you want the local branch to be published automatically, pass the flag
--publish
togit pr create