Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

difi

> 开发工具
Open source

Review and refine Git diffs before you push

357 stars0 likes1 views
WebsiteGitHub

About

Review and refine Git diffs before you push

Review and refine Git diffs before you push.

Installation

Homebrew (macOS & Linux)

bash
brew install difi

Go Install

bash
go install github.com/xguot/difi/cmd/difi@latest

AUR (Arch Linux)

Binary (pre-built):

bash
pikaur -S difi-bin

Build from source:

bash
pikaur -S difi

Manual (Linux / Windows)

  • Download the binary from Releases and add it to your $PATH.

Workflow

Run difi in any Git repository against main:

bash
cd my-project
difi

To compare against a specific branch or commit, just pass it as an argument:

bash
# Compare against the main branch
difi main

# Compare against the previous commit
difi HEAD~1

Piping & Alternative VCS

You can also pass raw diffs directly into difi via standard input. This is perfect for patch files or other version control systems like Jujutsu:

…

yaml ui: theme: "dracula"


## Integrations

#### vim-fugitive

- **The "Unix philosophy" approach:** Uses the industry-standard Git wrapper to provide a robust, side-by-side editing experience.
- **Side-by-Side Editing:** Instantly opens a vertical split (:Gvdiffsplit!) against the index.
- **Merge Conflicts:** Automatically detects conflicts and opens a 3-way merge view for resolution.
- **Config**: Add the line below to if using **lazy.nvim**.

```lua
{
  "tpope/vim-fugitive",
  cmd = { "Gvdiffsplit", "Git" }, -- Add this line
}

…

bash
bash
git config --global alias.difi '!difi'

Now you can run it directly from git:

bash
git difi

Contributors

  • Abraham Joy (@abraham-1672) - Logo and Wordmark Design

Star History

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Gobubbleteagit

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具