neogit
5,674
Stars
—
Forks
0
Watchers
—
Open Issues
待补全
许可证
Lua
语言
—
创建时间
最近更新
项目能做什么
受 Magit 启发的 Neovim 交互式、功能强大的 Git 客户端。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<div align="center">
<div>
<div><img src="https://github.com/NeogitOrg/neogit/assets/7228095/7684545f-47b5-40e2-aedd-ccf56e0553f4" width="400px"/></div>
<div><h1>Neogit</h1></div>
</div>
<table>
<tr>
<td>
<strong>A git interface for <a href="https://neovim.io">Neovim</a>, inspired by <a href="https://magit.vc">Magit</a>.</strong>
</td>
</tr>
</table>
[](http://www.lua.org)
[](https://neovim.io)
[](https://opensource.org/licenses/MIT)
<a href="https://dotfyle.com/plugins/NeogitOrg/neogit">
<img src="https://dotfyle.com/plugins/NeogitOrg/neogit/shield?style=for-the-badge" />
</a>
</div>

## Installation
Here's an example spec for [Lazy](https://github.com/folke/lazy.nvim), but you're free to use whichever plugin manager suits you.
```lua
{
"NeogitOrg/neogit",
lazy = true,
dependencies = {
-- Only one of these is needed.
"sindrets/diffview.nvim", -- optional
"esmuellert/codediff.nvim", -- optional
-- For a custom log pager
"m00qek/baleia.nvim", -- optional
-- Only one of these is needed.
"nvim-telescope/telescope.nvim", -- optional
"ibhagwan/fzf-lua", -- optional
"nvim-mini/mini.pick", -- optional
"folke/snacks.nvim", -- optional
},
cmd = "Neogit",
keys = {
{ "<leader>gg", "<cmd>Neogit<cr>", desc = "Show Neogit UI" }
}
}
```
## Usage
You can either open Neogit by using the `Neogit` command:
```vim
:Neogit " Open the status buffer in a new tab
:Neogit cwd=<cwd> " Use a different repository path
:Neogit cwd=%:p:h " Uses the repository of the current file
:Neogit kind=<kind> " Open specified popup directly
:Neogit commit " Open commit popup
" Map it to a key
nnoremap <leader>gg <cmd>Neogit<cr>
```
```lua
-- Or via lua api
vim.keymap.set("n", "<leader>gg", "<cmd>Neogit<cr>", { desc = "Open Neogit UI" })
```
Or using the lua api:
```lua
local neogit = require('neogit')
-- open using defaults
neogit.open()
-- open a specific popup
neogit.open({ "commit" })
-- open as a split
neogit.open({ kind = "split" })
-- open with different project
neogit.open({ cwd = "~" })
-- You can map this to a key
vim.keymap.set("n", "<leader>gg", neogit.open, { desc = "Open Neogit UI" })
-- Wrap in a function to pass additional arguments
vim.keymap.set(
"n",
"<leader>gg",
function() neogit.open({ kind = "split" }) end,
{ desc = "Open Neogit UI" }
)
```
The `kind` option can be one of the following values:
- `tab` (default)
- `replace`
- `split`
- `split_above`
-
阅读完整原文
项目深度分析 AI 生成
Neogit AI 智能提交与代码审查增强扩展(Neogit Pro / AI Addon)
| 产品构想 | 以独立收费插件或接入订阅制 API 的形式,为 Neogit 增加 AI 智能能力(如自动生成 Conventional Commits 提交信息、变动差异智能 Summarize、提交前本地安全审计)。 |
| 核心功能 | 一键依据暂存区(Staged Hunks)生成多语言规范提交信息;提交前敏感密钥/合规扫描;分支合并冲突 AI 辅助解答。 |
| 目标用户 | 注重代码规范与提交效率的高频 Neovim 职业开发者、工程团队成员。 |
| 难度/周期 | 中等 · 3-5周 · 成本:开发机器 + LLM API 测试费用 |
| 收费模式 | 按月订阅 Token/API 中转服务,或 Gumroad 买断独立商业扩展许可。 |
| 竞争风险 | 开源竞品(各种通用 Neovim AI 插件)多,纯 Prompt 功能易被抄袭绕过。 |
| 依据 | AI推测 |
企业级 Git 工作流协同与 Code Review 面板集成
| 产品构想 | 针对 GitHub Enterprise/GitLab 深度绑定的团队,扩展 Neogit 支持行内拉取 PR 评论、一键评审与审查提交(将 GitHub PR/GitLab MR 工作流无缝并入 Neogit 交互)。 |
| 核心功能 | Neovim 内拉取/发表 PR/MR 行级评论;一键签出评审分支与标记状态;配合 CI 状态反馈显示。 |
| 目标用户 | 需要重度进行内网/企业平台 Code Review 的远程开发团队和极客工程师。 |
| 难度/周期 | 高 · 2-3个月 · 成本:企业测试账号与接口集成成本 |
| 收费模式 | 按团队席位收费的企业授权,或打包技术支持服务。 |
| 竞争风险 | 已有开源插件(如 octo.nvim)覆盖部分功能;Vim 用户群对商业付费敏感度极高。 |
| 依据 | 尚需验证的假设 |
开源赞助 + 定制功能众筹维护
| 产品构想 | 维持纯开源与社区驱动路线,通过 GitHub Sponsors / Open Collective 进行长期赞助,并对特定高复杂度功能(如更复杂的 Interactive Rebase、性能瓶颈突破)设立赞助里程碑。 |
| 核心功能 | 优先 Issue 处理;按赞助方诉求优化特定边缘场景;赞助者专属徽章与每月进度更新通告。 |
| 目标用户 | 长期受益于 Neogit 并希望项目持续健康发展的资深开发者与开源支持机构。 |
| 难度/周期 | 低 · 1周 · 成本:极低,仅时间维护成本 |
| 收费模式 | 平台打赏、每月赞助会员(Tier-based Sponsor)。 |
| 竞争风险 | 收入极不稳定,难以支撑全职独立开发,主要作为维护补助。 |
| 依据 | 已验证事实 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
相似项目数据正在完善中,暂不展示(避免误导)
项目优势与风险
| 技术成熟度 | 创建时间待补全,最近推送 ,发布过 3 个 Release |
| 社区活跃 | Star 5,674 / Fork 0 / Issue 0(数据支持,可自行核实) |
| 许可证 | 未检测到(需人工确认) |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。