mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-01 08:35:23 +02:00
hub: improve pull request examples
- Add `push` command to the pull-request example - add a new example demonstrating the `--no-edit` option
This commit is contained in:
parent
e5bd9dc96c
commit
8d671b6240
1 changed files with 7 additions and 3 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue