Linux command
hub-create 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Create new GitHub repository
hub create
Create with description
hub create -d "[description]"
Create private repository
hub create -p
Create in organization
hub create [org/repo]
Create and open in browser
hub create --browse
Create with homepage
hub create -h [https://example.com]
说明
hub create creates a new GitHub repository and adds it as a remote. Uses the current directory name if no name specified. Can create repositories in organizations by specifying org/repo format.
参数
- -d, --description _text_
- Repository description.
- -p, --private
- Create private repository.
- -h, --homepage _url_
- Repository homepage URL.
- -o, --browse
- Open the new repository in a web browser.
- -c, --copy
- Copy the new repository URL to the clipboard instead of printing.
- --remote-name _name_
- Set the name for the new git remote (default: origin).
FAQ
What is the hub-create command used for?
hub create creates a new GitHub repository and adds it as a remote. Uses the current directory name if no name specified. Can create repositories in organizations by specifying org/repo format.
How do I run a basic hub-create example?
Run `hub create` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -d, --description _text_ do in hub-create?
Repository description.