Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
github
hub
提交
c455473a
H
hub
项目概览
github
/
hub
9 个月 前同步成功
通知
3
Star
22523
Fork
2406
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hub
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
c455473a
编写于
1月 25, 2020
作者:
M
Mislav Marohnić
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Tweak README, improve usage docs
上级
33f92939
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
23 addition
and
19 deletion
+23
-19
README.md
README.md
+23
-19
未找到文件。
README.md
浏览文件 @
c455473a
...
@@ -10,19 +10,23 @@ Usage
...
@@ -10,19 +10,23 @@ Usage
```
sh
```
sh
$
hub clone rtomayko/tilt
$
hub clone rtomayko/tilt
# expands to:
#=> git clone git://github.com/rtomayko/tilt.git
#=> git clone git://github.com/rtomayko/tilt.git
# if you prefer HTTPS to git/SSH protocols:
$
git config
--global
hub.protocol https
$
hub clone rtomayko/tilt
#=> git clone https://github.com/rtomayko/tilt.git
```
```
hub can be safely
[
aliased
](
#aliasing
)
as
`git`
so you can type
`$ git
See
[
usage examples
](
https://hub.github.com/#developer
)
or the
[
full reference
<command>`
in the shell and get all the usual
`hub`
features.
documentation
](
https://hub.github.com/hub.1.html
)
to see all available commands
and flags.
See
[
Usage documentation
](
https://hub.github.com/hub.1.html
)
for the list of all
hub can also be used to make shell scripts that
[
directly interact with the
commands and their arguments
.
GitHub API
](
https://hub.github.com/#scripting
)
.
hub can
also be used to make shell scripts that
[
manually interface with the
hub can
be safely
[
aliased
](
#aliasing
)
as
`git`
, so you can type
`$ git
GitHub API
](
https://hub.github.com/hub-api.1.html
)
.
<command>`
in the shell and have it expanded with
`hub`
features
.
Installation
Installation
------------
------------
...
@@ -41,11 +45,14 @@ FreeBSD | [pkg(8)](http://man.freebsd.org/pkg/8) | `pkg install hub`
...
@@ -41,11 +45,14 @@ FreeBSD | [pkg(8)](http://man.freebsd.org/pkg/8) | `pkg install hub`
Debian |
[
apt(8)
](
https://manpages.debian.org/buster/apt/apt.8.en.html
)
|
`sudo apt install hub`
Debian |
[
apt(8)
](
https://manpages.debian.org/buster/apt/apt.8.en.html
)
|
`sudo apt install hub`
Ubuntu |
[
Snap
](
https://snapcraft.io
)
|
`snap install hub --classic`
Ubuntu |
[
Snap
](
https://snapcraft.io
)
|
`snap install hub --classic`
Packages other than Homebrew are community-maintained (thank you!) and they
are not guaranteed to match the
[
latest hub release
][
latest
]
. Check
`hub
version`
after installing a community package.
#### Standalone
#### Standalone
`hub`
can be easily installed as an executable. Download the latest
`hub`
can be easily installed as an executable. Download the
[
latest
[
compiled binaries
](
https://github.com/github/hub/releases
)
and put it anywhere
binary
][
latest
]
for your system and put it anywhere in your executable path.
in your executable path.
#### GitHub Actions
#### GitHub Actions
...
@@ -139,18 +146,15 @@ New-Item -Type file -Force $PROFILE
...
@@ -139,18 +146,15 @@ New-Item -Type file -Force $PROFILE
### Shell tab-completion
### Shell tab-completion
hub repository contains
tab-completion scripts
for bash, zsh and fish.
hub repository contains
[
tab-completion scripts
](
./etc
)
for bash, zsh and fish.
These scripts complement existing completion scripts that ship with git.
These scripts complement existing completion scripts that ship with git.
[
Installation instructions
](
etc
)
*
[
hub bash completion
](
https://github.com/github/hub/blob/master/etc/hub.bash_completion.sh
)
*
[
hub zsh completion
](
https://github.com/github/hub/blob/master/etc/hub.zsh_completion
)
*
[
hub fish completion
](
https://github.com/github/hub/blob/master/etc/hub.fish_completion
)
Meta
Meta
----
----
*
Home:
<https://github.com/github/hub>
*
Bugs:
<https://github.com/github/hub/issues>
*
Bugs:
<https://github.com/github/hub/issues>
*
Authors:
<https://github.com/github/hub/contributors>
*
Authors:
<https://github.com/github/hub/contributors>
*
Our
[
Code of Conduct
](
https://github.com/github/hub/blob/master/CODE_OF_CONDUCT.md
)
[
latest
]:
https://github.com/github/hub/releases/latest
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录