...
The command git fork
will also clone your personal fork to a local repository on your computer.
...
Publishing a local branch
To publish a local branch to a remote repository, run the following command:
...
- If you want to run jcheck on your changes before the pull request is created, pass the flag
--jchec
k
- If you want the local branch to be published automatically, pass the flag
--publish
Listing pull requests
To list the open pull requests for a repository, run the command git pr list
in a local clone of your personal fork:
...
- You can filter the listed pull requests by passing additional flags such
--assignees=<USERNAMES>
,--authors=<USERNAMES>
,--labels=<LABELS>
- You can select the columns to show by passing the
--columns
flag, for example--columns=id,title
Setting properties of a pull request
To set properties of a pull request, run the command git pr set
:
Code Block | ||
---|---|---|
| ||
$ git pr set |
Examples:
- To set the title of a pull request, run
git pr set --title <TITLE>
- To set the body of a pull request, run
git pr set --body <BODY>
- To close a pull request, run
git pr set --closed
Integrating a pull request
To integrate a pull request that you have created, run the command git pr integrate
:
Code Block | ||
---|---|---|
| ||
$ git pr integrate |
Notes:
If you find yourself typing
git pr integrate
a lot, you might want to create the alias "integrate":Code Block language bash $ git config --global alias.integrate 'pr integrate'
You can then just run
git integrate
to integrate a pull request.