From da76b2ae86af7b948bbfbc472862816dacf22a18 Mon Sep 17 00:00:00 2001 From: Nils Winkler Date: Thu, 3 Sep 2015 10:50:27 +0200 Subject: [PATCH] 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. --- Commands.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Commands.md b/Commands.md index 6f7e651..32c853e 100644 --- a/Commands.md +++ b/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