A GitHub-like Git preview tool that opens repository diffs in your browser.
npm install -g diffly
git clone https://github.com/shugar/diffly.git
cd diffly
npm install
npm start
- Navigate to any Git repository in your terminal:
cd /path/to/your/git/project
- Run Diffly:
diffly
- The tool will automatically:
- Start a local web server
- Open your browser to view the Git preview
- Display uncommitted changes, repository status, and commit history
- Changes Tab: View uncommitted changes with before/after diff visualization
- Status Tab: See modified, added, deleted, and untracked files
- History Tab: Browse recent commit history
- GitHub-like UI: Dark theme interface similar to GitHub
- Real-time: Live updates as you make changes to your repository
-p, --port <port>
: Specify the port to run the server on (default: 3000)
Example:
diffly --port 8080
- Node.js 14.0.0 or higher
- A Git repository (must contain a .git folder)
- Diffly detects the .git folder in your current directory
- Starts an Express server with API endpoints for Git operations
- Serves a web interface that calls these APIs to display Git information
- Automatically opens your browser to the preview page
Ctrl+C
(orCmd+C
on Mac): Stop the server