mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Added details to git-pr documentation
Details for: * Using a remote other than `origin` by providing it in the second parameter. * Using the `clean` parameter to remove all local `pr/*` branches.
This commit is contained in:
parent
1eba324e94
commit
da76b2ae86
16
Commands.md
16
Commands.md
|
|
@ -812,6 +812,22 @@ From https://github.com/tj/git-extras
|
|||
Switched to branch 'pr/226'
|
||||
```
|
||||
|
||||
To use a remote other than `origin`, e.g. `upstream` if you're working in a fork, specify it as the second parameter:
|
||||
|
||||
```bash
|
||||
$ git pr 226 upstream
|
||||
From https://github.com/tj/git-extras
|
||||
* [new ref] refs/pulls/226/head -> pr/226
|
||||
Switched to branch 'pr/226'
|
||||
```
|
||||
|
||||
To remove all local pull request branches, provide the magic `clean` parameter:
|
||||
|
||||
```bash
|
||||
$ git pr clean
|
||||
Deleted branch 'pr/226' (was 1234567).
|
||||
```
|
||||
|
||||
## git root
|
||||
|
||||
show the path to root directory of git repo
|
||||
|
|
|
|||
Loading…
Reference in a new issue