Linux command
hub-fork 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Fork current repository
hub fork
Fork without remote
hub fork --no-remote
Fork specific repository
hub fork [user/repo]
Fork to organization
hub fork --org [myorg]
说明
hub fork creates a fork of a GitHub repository. It adds a remote pointing to your fork automatically. The command forks to your account or specified organization. It sets up the remote for pushing to your fork.
参数
- --no-remote
- Don't add remote.
- --org _ORG_
- Fork to organization.
- --remote-name _NAME_
- Remote name (default: origin).
- --help
- Display help information.
FAQ
What is the hub-fork command used for?
hub fork creates a fork of a GitHub repository. It adds a remote pointing to your fork automatically. The command forks to your account or specified organization. It sets up the remote for pushing to your fork.
How do I run a basic hub-fork example?
Run `hub fork` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --no-remote do in hub-fork?
Don't add remote.