Files
tldr/pages.zh/common/hub-fork.md

16 lines
429 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# hub fork
> 从 GitHub 仓库分叉。类似于 `git fork` 来自 `git-extras`。
> 更多信息:<https://hub.github.com/hub-fork.1.html>。
- 通过其缩略名分叉一个 GitHub 仓库:
`hub fork {{tldr-pages/tldr}}`
- 通过其 URL 分叉一个 GitHub 仓库:
`hub fork {{https://github.com/tldr-pages/tldr}}`
- 分叉当前 GitHub 仓库,将远程名称设置为 origin
`hub fork --remote-name {{origin}}`