Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Git Commander ProNew to Visual Studio Code? Get it now.
Git Commander Pro

Git Commander Pro

songxinyuan

|
29 installs
| (1) | Free
一个强大的 Git 可视化管理扩展,提供直观的界面操作 Git 仓库,支持文件状态管理、分支操作、历史记录查看等功能。
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Git Commander Pro

简介

Git Commander Pro 是一个强大的 VS Code 扩展,为开发者提供了一个直观、现代化的 Git 操作界面。通过这个扩展,您可以更轻松地管理您的 Git 仓库,执行日常的 Git 操作,无需记忆复杂的命令行指令。

使用演示

使用演示

使用方法

  1. 安装扩展后,在 VS Code 的活动栏中点击 Git Commander Pro 图标
  2. 或使用命令面板(Ctrl+Shift+P / Cmd+Shift+P)输入 "Open Git Commander Pro"

✨ 核心功能

Git Commander Pro 将所有核心 Git 操作都集成在了一个清爽的多标签页界面中,让您告别频繁的命令行切换。

工作区 (Workspace)

  • 状态概览: 智能识别并清晰展示暂存区 (Staged) 和工作区 (Working Directory) 中的所有文件变更。
  • 文件操作:
    • Diff: 直观比对单个文件的具体修改内容。
    • Discard: 轻松丢弃单个文件的所有修改。
  • 提交面板:
    • 提供 feat, fix, docs 等快捷标签,帮助您撰写规范的 Commit Message。
    • 智能生成提交信息: 点击 ✨ 按钮,插件会通过 AST (抽象语法树) 智能分析您变更最多的文件。如果检测到新增函数或类,会自动生成如 feat(core): 新增函数 'newFunction' 的精准信息,极大提升提交效率。
    • 智能提交按钮: "Commit", "Commit & Push" 等按钮会在工作区干净时提示用户,避免无效操作。
  • 一键操作:
    • Stash All: 一键储藏所有未提交的变更。
    • Discard All: 一键丢弃所有未提交的变更。

历史 (History)

  • 清晰的提交树: 以列表形式展示所有提交历史。
  • 分支与标签可视化: 在 Commit 信息旁,通过彩色徽章清晰地展示当前分支 (HEAD) 和关联的标签 (Tag)。
  • 历史穿梭:
    • Reset: 以 Mixed Reset 模式回滚到任意 Commit,并将所有变更保留在工作区供您审查,安全又可控。
    • Tag: 为任意 Commit 添加新的标签。

分支 (Branches)

  • 同步状态指示器: 在顶部清晰展示当前分支与远程分支的同步状态 (领先 ↑A / 落后 ↓B)。
  • 分支管理:
    • 分别列表展示所有本地分支和远程分支。
    • 鼠标悬停即可显示 "Checkout", "Merge", "Delete" 等操作按钮,界面干净整洁。
    • 以 Merge --no-commit 模式合并分支,将所有变更置于工作区,让您在提交前能充分确认合并内容。
  • 远程交互: 提供独立的 "Pull" 和 "Push" 按钮,补全了核心工作流。

储藏 (Stash)

  • 储藏列表: 展示仓库中所有的储藏记录。
  • 储藏操作:
    • Pop: 应用一个储藏,并将其从列表中移除。
    • Delete: 直接从列表中删除一个储藏。

🚀 交互与体验亮点

  • 智能状态同步: 在您完成 Merge, Reset, Pull, Push 等几乎所有关键操作后,相关的视图(工作区、历史、分支状态)都会自动刷新,并智能跳转到最合适的标签页,提供流畅、连贯的交互反馈。
  • 人性化错误提示: 为"标签已存在"、"Stash 冲突"等常见 Git 错误提供了清晰、友好的弹窗提示。
  • 极致的性能与体积优化:
    • 技术选型: 解析引擎从最初的 TypeScript (导致打包后 2.6MB),到 @babel/parser (2.4MB),最终选用超轻量的 acorn (~240KB 核心逻辑),从根源上保证了核心代码的轻量。
    • 构建流程: 通过 copy-webpack-plugin 和精细的 .vscodeignore 配置,将 Webview 资源从源码中分离,实现了产物的最终纯净,将插件总大小压缩至约 300KB,确保了极快的加载和响应速度。
  • 现代化的视觉设计: 拥有"科技感"十足的全新 UI,信息展示清晰,视觉体验舒适。

反馈与支持

如果您在使用过程中遇到任何问题,或有任何建议,欢迎通过以下方式联系我们:

  • 在 Gitee 上提交 Issue
  • 访问项目主页

许可证

本项目采用 MIT 许可证

How to Use

  1. Open the command palette (Cmd+Shift+P on Mac, Ctrl+Shift+P on Windows).
  2. Run the command Git Commander Pro: Open.
  3. The Git Commander Pro panel will open, giving you access to all its features.

Enjoy!

Requirements

If you have any requirements or dependencies, add a section describing those and how to install and configure them.

Extension Settings

Include if your extension adds any VS Code settings through the contributes.configuration extension point.

For example:

This extension contributes the following settings:

  • myExtension.enable: Enable/disable this extension.
  • myExtension.thing: Set to blah to do something.

Known Issues

Calling out known issues can help limit users opening duplicate issues against your extension.

Release Notes

Users appreciate release notes as you update your extension.

1.0.0

Initial release of ...

1.0.1

Fixed issue #.

1.1.0

Added features X, Y, and Z.


Following extension guidelines

Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.

  • Extension Guidelines

Working with Markdown

You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:

  • Split the editor (Cmd+\ on macOS or Ctrl+\ on Windows and Linux).
  • Toggle preview (Shift+Cmd+V on macOS or Shift+Ctrl+V on Windows and Linux).
  • Press Ctrl+Space (Windows, Linux, macOS) to see a list of Markdown snippets.

For more information

  • Visual Studio Code's Markdown Support
  • Markdown Syntax Reference

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft