...
The above command git fork
will also clone your personal fork to a local repository on your computer.
Multiple local clones
Creating a pull request
To create a pull request first create a If you are used to having one local clone of a repository for each change you are working on then that is also supported. The only difference is that you first create a local clone of your personal fork, then create a local branch in that the local clone . Fortunately the Skara git fork
command is idempotent - if you already have a personal fork then you will just get that one. Therefore the following commands can be run by those preferring to have one local repository per change they are working onof your personal fork:
Code Block | ||
---|---|---|
| ||
$ git fork https://github.com/openjdk/jdk JDK-8237566 Fork available at: https://github.com/edvbld/jdk Cloning https://github.com/edvbld/jdk... Cloning into 'JDK-8237566'... remote: Enumerating objects: 1019523, done. remote: Total 1019523 (delta 0), reused 0 (delta 0), pack-reused 1019523 Receiving objects: 100% (1019523/1019523), 372.46 MiB | 4.99 MiB/s, done. Resolving deltas: 100% (761166/761166), done. Updating files: 100% (68663/68663), done. Adding remote 'upstream' for https://github.com/openjdk/jdk...done $ cd JDK-8237566 $ git checkout -b JDK-8237566 Switched to a new branch 'JDK-8237566'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:
Code Block | ||
---|---|---|
| ||
$ git pr create --jcheck --publish |