Skip to content

Commit 1013899

Browse files
committed
优化 Git文档
1 parent 75ec686 commit 1013899

File tree

3 files changed

+44
-38
lines changed

3 files changed

+44
-38
lines changed

ExtensionTutorial/gitextension.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

Tutorial/SourceControl/git.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Git重大更新
2+
3+
HBuilderX 3.1.23+ 支持在项目管理上对Git项目进行一些快捷操作。
4+
5+
在Git项目名称后面显示该Git仓库的当前分支,样式如图所示:
6+
7+
<img src="/static/snapshots/gitextension_branch.png" style="border:1px solid #eee; border-radius: 5px;"/>
8+
9+
备注:在HBuilderX内,使用Git,需要先安装Git插件,Git插件调用的是`外部Git工具`,因此需要安装的Git命令行工具;同时windows也需要安装[TortoiseGit](https://tortoisegit.org/download/)
10+
11+
### Git快捷操作菜单
12+
13+
该标签可以点击,打开Git快捷操作菜单,在Git插件里“scm/file/branchlabel”扩展点配置了该菜单列表。该功能默认开启:
14+
15+
<img src="/static/snapshots/gitextension_branch_menu.png" style="border:1px solid #eee; border-radius: 5px;"/>
16+
17+
同时,对旧版本的Git插件以下命令做了升级:
18+
19+
### 切换分支(checkout)
20+
21+
点击“切换分支”菜单,弹出分支选择列表,选择本地分支或远程分支执行签出:
22+
23+
<img src="/static/snapshots/gitextension_checkout.png" style="border:1px solid #eee; border-radius: 5px;"/>
24+
25+
执行签出时会在状态栏提示状态:
26+
27+
<img src="/static/snapshots/gitextension_checkout_tips.png" style="border:1px solid #eee; border-radius: 5px;"/>
28+
29+
### 获取(fetch)
30+
31+
点击“获取”菜单,在当前项目执行git fetch命令
32+
33+
### 拉取(pull)
34+
35+
点击“拉取”菜单,默认提供了几个拉取选项(目前不能自定义):
36+
37+
<img src="/static/snapshots/gitextension_pull.png" style="border:1px solid #eee; border-radius: 5px;"/>
38+
39+
### 推送(push)
40+
41+
点击“推送”菜单,默认提供了几个推送选项(目前不能自定义),当选择“force”选项是,会进行二次确认是否继续执行:
42+
43+
<img src="/static/snapshots/gitextension_push.png" style="border:1px solid #eee; border-radius: 5px;"/>

_sidebar.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
* [前端网页托管](/Tutorial/App/hosting.md)
4444
* 版本控制
4545
* [Git 介绍](/Tutorial/SourceControl/Git/README.md)
46+
* [Git重大更新](/Tutorial/SourceControl/git.md)
4647
* [Git Windows手册](/Tutorial/SourceControl/Git/Windows.md)
4748
* [Git MacOSX手册](/Tutorial/SourceControl/Git/MacOSX.md)
4849
* [SVN Windows手册](/Tutorial/SourceControl/SVN/Windows.md)

0 commit comments

Comments
 (0)