Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
github
hub
提交
21ab7c78
H
hub
项目概览
github
/
hub
大约 1 年 前同步成功
通知
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,发现更多精彩内容 >>
提交
21ab7c78
编写于
1月 20, 2016
作者:
M
Mislav Marohnić
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1077 from kbrock/rename_gh
rename gh command to hub in docs
上级
69460919
53556557
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
47 addition
and
47 deletion
+47
-47
commands/apply.go
commands/apply.go
+1
-1
commands/browse.go
commands/browse.go
+5
-5
commands/checkout.go
commands/checkout.go
+2
-2
commands/cherry_pick.go
commands/cherry_pick.go
+3
-3
commands/ci_status.go
commands/ci_status.go
+4
-4
commands/clone.go
commands/clone.go
+5
-5
commands/compare.go
commands/compare.go
+3
-3
commands/create.go
commands/create.go
+4
-4
commands/fetch.go
commands/fetch.go
+1
-1
commands/fork.go
commands/fork.go
+2
-2
commands/init.go
commands/init.go
+1
-1
commands/issue.go
commands/issue.go
+1
-1
commands/merge.go
commands/merge.go
+1
-1
commands/pull_request.go
commands/pull_request.go
+6
-6
commands/push.go
commands/push.go
+2
-2
commands/remote.go
commands/remote.go
+3
-3
commands/submodule.go
commands/submodule.go
+3
-3
未找到文件。
commands/apply.go
浏览文件 @
21ab7c78
...
...
@@ -41,7 +41,7 @@ func init() {
}
/*
$
gh
apply https://github.com/jingweno/gh/pull/55
$
hub
apply https://github.com/jingweno/gh/pull/55
> curl https://github.com/jingweno/gh/pull/55.patch -o /tmp/55.patch
> git apply /tmp/55.patch
...
...
commands/browse.go
浏览文件 @
21ab7c78
...
...
@@ -33,19 +33,19 @@ func init() {
}
/*
$
gh
browse
$
hub
browse
> open https://github.com/CURRENT_REPO
$
gh
browse -- issues
$
hub
browse -- issues
> open https://github.com/CURRENT_REPO/issues
$
gh
browse jingweno/gh
$
hub
browse jingweno/gh
> open https://github.com/jingweno/gh
$
gh
browse gh
$
hub
browse gh
> open https://github.com/YOUR_LOGIN/gh
$
gh
browse gh wiki
$
hub
browse gh wiki
> open https://github.com/YOUR_LOGIN/gh/wiki
*/
func
browse
(
command
*
Command
,
args
*
Args
)
{
...
...
commands/checkout.go
浏览文件 @
21ab7c78
...
...
@@ -25,11 +25,11 @@ func init() {
}
/**
$
gh
checkout https://github.com/jingweno/gh/pull/73
$
hub
checkout https://github.com/jingweno/gh/pull/73
> git remote add -f --no-tags -t feature git://github:com/foo/gh.git
> git checkout --track -B foo-feature foo/feature
$
gh
checkout https://github.com/jingweno/gh/pull/73 custom-branch-name
$
hub
checkout https://github.com/jingweno/gh/pull/73 custom-branch-name
**/
func
checkout
(
command
*
Command
,
args
*
Args
)
{
if
!
args
.
IsParamsEmpty
()
{
...
...
commands/cherry_pick.go
浏览文件 @
21ab7c78
...
...
@@ -24,15 +24,15 @@ func init() {
}
/*
$
gh
cherry-pick https://github.com/jingweno/gh/commit/a319d88#comments
$
hub
cherry-pick https://github.com/jingweno/gh/commit/a319d88#comments
> git remote add -f --no-tags jingweno git://github.com/jingweno/gh.git
> git cherry-pick a319d88
$
gh
cherry-pick jingweno@a319d88
$
hub
cherry-pick jingweno@a319d88
> git remote add -f --no-tags jingweno git://github.com/jingweno/gh.git
> git cherry-pick a319d88
$
gh
cherry-pick jingweno@SHA
$
hub
cherry-pick jingweno@SHA
> git fetch jingweno
> git cherry-pick SHA
*/
...
...
commands/ci_status.go
浏览文件 @
21ab7c78
...
...
@@ -31,16 +31,16 @@ func init() {
}
/*
$
gh
ci-status
$
hub
ci-status
> (prints CI state of HEAD and exits with appropriate code)
$
gh
ci-status -v
$
hub
ci-status -v
> (prints CI states and URLs to CI build results for HEAD and exits with appropriate code)
$
gh
ci-status BRANCH
$
hub
ci-status BRANCH
> (prints CI state of BRANCH and exits with appropriate code)
$
gh
ci-status SHA
$
hub
ci-status SHA
> (prints CI state of SHA and exits with appropriate code)
*/
func
ciStatus
(
cmd
*
Command
,
args
*
Args
)
{
...
...
commands/clone.go
浏览文件 @
21ab7c78
...
...
@@ -25,19 +25,19 @@ func init() {
}
/**
$
gh
clone jingweno/gh
$
hub
clone jingweno/gh
> git clone git://github.com/jingweno/gh.git
$
gh
clone -p jingweno/gh
$
hub
clone -p jingweno/gh
> git clone git@github.com:jingweno/gh.git
$
gh
clone jekyll_and_hyde
$
hub
clone jekyll_and_hyde
> git clone git://github.com/YOUR_LOGIN/jekyll_and_hyde.git
$
gh
clone -p jekyll_and_hyde
$
hub
clone -p jekyll_and_hyde
> git clone git@github.com:YOUR_LOGIN/jekyll_and_hyde.git
$
gh
clone jekyll_and_hyde jekyll
$
hub
clone jekyll_and_hyde jekyll
> git clone git://github.com/YOUR_LOGIN/jekyll_and_hyde.git jekyll
*/
func
clone
(
command
*
Command
,
args
*
Args
)
{
...
...
commands/compare.go
浏览文件 @
21ab7c78
...
...
@@ -37,13 +37,13 @@ func init() {
}
/*
$
gh
compare refactor
$
hub
compare refactor
> open https://github.com/CURRENT_REPO/compare/refactor
$
gh
compare 1.0..1.1
$
hub
compare 1.0..1.1
> open https://github.com/CURRENT_REPO/compare/1.0...1.1
$
gh
compare -u other-user patch
$
hub
compare -u other-user patch
> open https://github.com/other-user/REPO/compare/patch
*/
func
compare
(
command
*
Command
,
args
*
Args
)
{
...
...
commands/create.go
浏览文件 @
21ab7c78
...
...
@@ -39,18 +39,18 @@ func init() {
}
/*
$
gh
create
$
hub
create
... create repo on github ...
> git remote add -f origin git@github.com:YOUR_USER/CURRENT_REPO.git
# with description:
$
gh
create -d 'It shall be mine, all mine!'
$
hub
create -d 'It shall be mine, all mine!'
$
gh
create recipes
$
hub
create recipes
[ repo created on GitHub ]
> git remote add origin git@github.com:YOUR_USER/recipes.git
$
gh
create sinatra/recipes
$
hub
create sinatra/recipes
[ repo created in GitHub organization ]
> git remote add origin git@github.com:sinatra/recipes.git
*/
...
...
commands/fetch.go
浏览文件 @
21ab7c78
...
...
@@ -23,7 +23,7 @@ func init() {
}
/*
$
gh
fetch jingweno
$
hub
fetch jingweno
> git remote add jingweno git://github.com/jingweno/REPO.git
> git fetch jingweno
...
...
commands/fork.go
浏览文件 @
21ab7c78
...
...
@@ -26,11 +26,11 @@ func init() {
}
/*
$
gh
fork
$
hub
fork
[ repo forked on GitHub ]
> git remote add -f YOUR_USER git@github.com:YOUR_USER/CURRENT_REPO.git
$
gh
fork --no-remote
$
hub
fork --no-remote
[ repo forked on GitHub ]
*/
func
fork
(
cmd
*
Command
,
args
*
Args
)
{
...
...
commands/init.go
浏览文件 @
21ab7c78
...
...
@@ -25,7 +25,7 @@ func init() {
}
/*
$
gh
init -g
$
hub
init -g
> git init
> git remote add origin git@github.com:USER/REPO.git
*/
...
...
commands/issue.go
浏览文件 @
21ab7c78
...
...
@@ -46,7 +46,7 @@ func init() {
}
/*
$
gh
issue
$
hub
issue
*/
func
issue
(
cmd
*
Command
,
args
*
Args
)
{
runInLocalRepo
(
func
(
localRepo
*
github
.
GitHubRepo
,
project
*
github
.
Project
,
gh
*
github
.
Client
)
{
...
...
commands/merge.go
浏览文件 @
21ab7c78
...
...
@@ -23,7 +23,7 @@ func init() {
}
/*
$
gh
merge https://github.com/jingweno/gh/pull/73
$
hub
merge https://github.com/jingweno/gh/pull/73
> git fetch git://github.com/jingweno/gh.git +refs/heads/feature:refs/remotes/jingweno/feature
> git merge jingweno/feature --no-ff -m 'Merge pull request #73 from jingweno/feature...'
*/
...
...
commands/pull_request.go
浏览文件 @
21ab7c78
...
...
@@ -66,23 +66,23 @@ func init() {
/*
# while on a topic branch called "feature":
$
gh
pull-request
$
hub
pull-request
[ opens text editor to edit title & body for the request ]
[ opened pull request on GitHub for "YOUR_USER:feature" ]
# explicit pull base & head:
$
gh
pull-request -b jingweno:master -h jingweno:feature
$
hub
pull-request -b jingweno:master -h jingweno:feature
$
gh
pull-request -m "title\n\nbody"
$
hub
pull-request -m "title\n\nbody"
[ create pull request with title & body ]
$
gh
pull-request -i 123
$
hub
pull-request -i 123
[ attached pull request to issue #123 ]
$
gh
pull-request https://github.com/jingweno/gh/pull/123
$
hub
pull-request https://github.com/jingweno/gh/pull/123
[ attached pull request to issue #123 ]
$
gh
pull-request -F FILE
$
hub
pull-request -F FILE
[ create pull request with title & body from FILE ]
*/
func
pullRequest
(
cmd
*
Command
,
args
*
Args
)
{
...
...
commands/push.go
浏览文件 @
21ab7c78
...
...
@@ -21,12 +21,12 @@ func init() {
}
/*
$
gh
push origin,staging,qa bert_timeout
$
hub
push origin,staging,qa bert_timeout
> git push origin bert_timeout
> git push staging bert_timeout
> git push qa bert_timeout
$
gh
push origin
$
hub
push origin
> git push origin HEAD
*/
func
push
(
command
*
Command
,
args
*
Args
)
{
...
...
commands/remote.go
浏览文件 @
21ab7c78
...
...
@@ -27,13 +27,13 @@ func init() {
}
/*
$
gh
remote add jingweno
$
hub
remote add jingweno
> git remote add jingweno git://github.com/jingweno/THIS_REPO.git
$
gh
remote add -p jingweno
$
hub
remote add -p jingweno
> git remote add jingweno git@github.com:jingweno/THIS_REPO.git
$
gh
remote add origin
$
hub
remote add origin
> git remote add origin git://github.com/YOUR_LOGIN/THIS_REPO.git
*/
func
remote
(
command
*
Command
,
args
*
Args
)
{
...
...
commands/submodule.go
浏览文件 @
21ab7c78
...
...
@@ -16,13 +16,13 @@ func init() {
}
/**
$
gh
submodule add jingweno/gh vendor/gh
$
hub
submodule add jingweno/gh vendor/gh
> git submodule add git://github.com/jingweno/gh.git vendor/gh
$
gh
submodule add -p jingweno/gh vendor/gh
$
hub
submodule add -p jingweno/gh vendor/gh
> git submodule add git@github.com:jingweno/gh.git vendor/gh
$
gh
submodule add -b gh --name gh jingweno/gh vendor/gh
$
hub
submodule add -b gh --name gh jingweno/gh vendor/gh
> git submodule add -b gh --name gh git://github.com/jingweno/gh.git vendor/gh
**/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录