hub: improve pull request examples

- Add `push` command to the pull-request example
- add a new example demonstrating the `--no-edit` option
italian
Waldir Pimenta 2019-01-04 16:21:22 +00:00 committed by Agniva De Sarker
parent e5bd9dc96c
commit 8d671b6240
1 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,6 @@
# hub
> A wrapper for git that adds commands for working with github-based projects.
> A wrapper for git that adds commands for working with GitHub-based projects.
> The commands can also be used using "git" instead of "hub".
- Clone a repository you own, using just the repository name rather than the full URL:
@ -15,9 +15,13 @@
`hub fork`
- Create a PR of the current branch in the original repository (after pushing the branch to github):
- Push the current local branch to github and create a PR for it in the original repository:
`hub pull-request`
`hub push {{remote_name}} && hub pull-request`
- Create a PR of the current (already pushed) branch, reusing the message from the first commit:
`hub pull-request --no-edit`
- Upload the current (local-only) repository to your github account: