← 返回命令列表

Linux command

hub 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Clone repository

hub clone [user/repo]

Create pull request

hub pull-request

Fork repository

hub fork

Create issue with title and message

hub issue create -m "[title]"

Browse repository in browser

hub browse

Create release with tag

hub release create -m "[Release title]" [tag]

Open a pull request with a message

hub pull-request -m "[title]"

说明

hub extends git with GitHub integration. It adds commands for pull requests, forks, issues, and other GitHub operations. The tool wraps git commands and adds GitHub-specific functionality. It can be aliased as git for seamless integration.

参数

clone
Clone repository.
pull-request
Create pull request.
fork
Fork repository.
issue
Issue operations.
browse
Open in browser.
release
Release management.
create
Create repository on GitHub.
ci-status
Show CI status of the current commit.
api
Make GitHub API requests directly.
--help
Display help information.

FAQ

What is the hub command used for?

hub extends git with GitHub integration. It adds commands for pull requests, forks, issues, and other GitHub operations. The tool wraps git commands and adds GitHub-specific functionality. It can be aliased as git for seamless integration.

How do I run a basic hub example?

Run `hub clone [user/repo]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does clone do in hub?

Clone repository.