Sublime Text 3 - Git 集成
Sublime Text 3 - Git Integration
在 ST3 中,现在有一个 Git 集成,但没有任何文档说明如何通过 ST3 获取 up/execute git 命令。是否有人现在正在使用此集成或有安装它的经验并且运行?
Sublime Text 中新 Git 支持的文档可在 this page of the Official Documentation. Note however that the git integration isn't for taking actions or working with git
in general; it only provides visualization of the state of the repository. For working with git
explicitly (making commits, checking out code, etc) you still need to use either an external tool such as Sublime Merge or a package in Sublime, such as GitSavvy
上找到
特别是,git 集成涵盖以下内容(图片来自上面链接的官方文档):
- 在边栏中显示文件的
git
状态,方法是向文件应用状态标记以指示该文件是否为 untracked
、modified
、added
等以及文件夹是否包含 modifed
个文件、missing
个文件等
- 在状态行中显示当前分支,以及未跟踪、修改、暂存或未合并的文件数量的状态:
- 已打开文件的间距中指示对该文件进行更改的标记:
- 与 Sublime Merge 集成,文件和侧边栏中的命令面板条目和上下文菜单允许您执行预定义的 git 操作,例如在 Sublime Merge 中打开该存储库或立即跳转到其他内容比如文件历史。
上面的文档中概述了此配置,但它与启用或禁用功能有关;特别是 Sublime Text 使用相同的 Git 库来读取为 Sublime Merge 开发的存储库,并且不需要您进行任何额外的设置即可工作。
另请注意,由于地址 space 问题,Git 支持仅在 64 位版本的 Sublime Text 中受支持。
与此相关但未严格包含在 Git 状态中的是,Sublime 主题引擎和配色方案已因此扩展以允许视觉样式。
特别是,您可以修改 color scheme 以调整用于内联差异显示的装订线宽度以及用于标记的颜色。
您还可以修改或扩展您的 theme definition to adjust the colors used for the status badges or to extend the color of the badges to the file entries themselves (the default is to only apply a badge to the file). An example of the built in Adaptive theme being modified to do that is available in this gist。
在 ST3 中,现在有一个 Git 集成,但没有任何文档说明如何通过 ST3 获取 up/execute git 命令。是否有人现在正在使用此集成或有安装它的经验并且运行?
Sublime Text 中新 Git 支持的文档可在 this page of the Official Documentation. Note however that the git integration isn't for taking actions or working with git
in general; it only provides visualization of the state of the repository. For working with git
explicitly (making commits, checking out code, etc) you still need to use either an external tool such as Sublime Merge or a package in Sublime, such as GitSavvy
特别是,git 集成涵盖以下内容(图片来自上面链接的官方文档):
- 在边栏中显示文件的
git
状态,方法是向文件应用状态标记以指示该文件是否为untracked
、modified
、added
等以及文件夹是否包含modifed
个文件、missing
个文件等
- 在状态行中显示当前分支,以及未跟踪、修改、暂存或未合并的文件数量的状态:
- 已打开文件的间距中指示对该文件进行更改的标记:
- 与 Sublime Merge 集成,文件和侧边栏中的命令面板条目和上下文菜单允许您执行预定义的 git 操作,例如在 Sublime Merge 中打开该存储库或立即跳转到其他内容比如文件历史。
上面的文档中概述了此配置,但它与启用或禁用功能有关;特别是 Sublime Text 使用相同的 Git 库来读取为 Sublime Merge 开发的存储库,并且不需要您进行任何额外的设置即可工作。
另请注意,由于地址 space 问题,Git 支持仅在 64 位版本的 Sublime Text 中受支持。
与此相关但未严格包含在 Git 状态中的是,Sublime 主题引擎和配色方案已因此扩展以允许视觉样式。
特别是,您可以修改 color scheme 以调整用于内联差异显示的装订线宽度以及用于标记的颜色。
您还可以修改或扩展您的 theme definition to adjust the colors used for the status badges or to extend the color of the badges to the file entries themselves (the default is to only apply a badge to the file). An example of the built in Adaptive theme being modified to do that is available in this gist。