Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
github
hub
提交
f8eda774
H
hub
项目概览
github
/
hub
12 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
f8eda774
编写于
12月 11, 2009
作者:
S
Scott Chacon
提交者:
Chris Wanstrath
12月 11, 2009
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rearrangement of the default help output
上级
e015b871
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
23 addition
and
21 deletion
+23
-21
lib/hub/commands.rb
lib/hub/commands.rb
+23
-21
未找到文件。
lib/hub/commands.rb
浏览文件 @
f8eda774
...
@@ -162,35 +162,37 @@ usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]
...
@@ -162,35 +162,37 @@ usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]
[-p|--paginate|--no-pager] [--bare] [--git-dir=GIT_DIR]
[-p|--paginate|--no-pager] [--bare] [--git-dir=GIT_DIR]
[--work-tree=GIT_WORK_TREE] [--help] COMMAND [ARGS]
[--work-tree=GIT_WORK_TREE] [--help] COMMAND [ARGS]
Creating a git repository:
Basic Commands:
clone Clone a repository into a new directory
init Create an empty git repository or reinitialize an existing one
init Create an empty git repository or reinitialize an existing one
add Add new or modified files to the staging area
Working with content:
rm Remove files from the working directory and staging area
add Add file contents to the index
mv Move or rename a file, a directory, or a symlink
branch List, create, or delete branches
status Show the status of the working directory and staging area
checkout Checkout a branch or paths to the working tree
commit Record changes to the repository
commit Record changes to the repository
History Commands:
log Show the commit history log
diff Show changes between commits, commit and working tree, etc
diff Show changes between commits, commit and working tree, etc
log Show commit log
s
show Show information about commits, tags or file
s
merge Join two or more development histories together
mv Move or rename a file, a directory, or a symlink
Branching Commands:
rm Remove files from the working tree and from the index
branch List, create, or delete branches
status Show the working tree status
checkout Switch the active branch to another branch
show Show various types of objects
merge Join two or more development histories (branches) together
tag Create, list, delete
or verify a tag object signed with GPG
tag Create, list, delete
, sign or verify a tag object
Over the network:
Remote Commands:
fetch Download objects and refs from another repository
clone Clone a remote repository into a new directory
fetch Download data, tags and branches from a remote repository
pull Fetch from and merge with another repository or a local branch
pull Fetch from and merge with another repository or a local branch
push Up
date remote refs along with associated objects
push Up
load data, tags and branches to a remote repository
remote
Manage a set of tracked
repositories
remote
View and manage a set of remote
repositories
Advanced commands:
Advanced commands:
reset Reset your staging area or working directory to another point
rebase Re-apply a series of patches in one branch onto another
bisect Find by binary search the change that introduced a bug
bisect Find by binary search the change that introduced a bug
grep Print lines matching a pattern
grep Print files with lines matching a pattern in your codebase
reset Reset current HEAD to the specified state
rebase Forward-port local commits to the updated upstream head
See 'git help COMMAND' for more information on a specific command.
See 'git help COMMAND' for more information on a specific command.
help
help
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录