From 0be5e3adaf8292e5aef3f3ee7c926c38686821cd Mon Sep 17 00:00:00 2001 From: Abel Date: Tue, 20 Oct 2020 01:29:43 +0800 Subject: [PATCH] gh-pr: add page (#4717) --- pages/common/gh-pr.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/gh-pr.md diff --git a/pages/common/gh-pr.md b/pages/common/gh-pr.md new file mode 100644 index 000000000..d0b9bcef7 --- /dev/null +++ b/pages/common/gh-pr.md @@ -0,0 +1,24 @@ +# gh-pr + +> Manage GitHub pull requests from the command line. +> More information: . + +- Create a pull request: + +`gh pr create` + +- Check out a pull request locally: + +`gh pr checkout {{pr_number}}` + +- View the changes made in the PR: + +`gh pr diff` + +- Approve the pull request of the current branch: + +`gh pr review --approve` + +- Merge the pull request associated with the current branch, removing the branch on both the local and the remote: + +`gh pr merge`