neogit
5,673
Stars
0
Forks
0
Watchers
0
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 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| OSWatcher/osw-fs-windows | 中文介绍暂未生成 [LEGACY] Git-based Windows filesystem capture from the pre-n |
77 | - |
| NicholasZolton/neojj | 中文介绍暂未生成 An interactive and powerful Jujutsu interface for Neovim, in |
73 | Lua |
| practicalli/neovim | 中文介绍暂未生成 Guides to using Neovim, Conjure, LSP and Portal for Clojure |
29 | Makefile |
| dont-be-evil-company/jujutsu.nvim | 中文介绍暂未生成 A Magit-style Jujutsu (jj) interface for Neovim. |
29 | Lua |
| OSWatcher/windows-desktop | 中文介绍暂未生成 [LEGACY] Git-based Windows desktop capture from the pre-neog |
19 | PowerShell |
| practicalli/nvim-astro | 中文介绍暂未生成 Neovim 0.12 config for Clojure development, based on AstroNv |
13 | Lua |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 ,最近推送 ,发布过 3 个 Release |
| 社区活跃 | Star 5,673 / Fork 0 / Issue 0(数据支持,可自行核实) |
| 许可证 | 未检测到(需人工确认) |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/NeogitOrg/neogit.git cd neogit # 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。