Skip to content

A Sublime Text plugin that lets you see all modified files and preview their changes.

License

Notifications You must be signed in to change notification settings

predragnikolic/sublime-git-diff-view

Repository files navigation

Git Diff View

Get a quick overview of changes before committing them.

Example

Features

  • Show all modified files
  • Show the diff view for a file
  • Stage/Unstage files
  • Discard changes to a file
  • Goto a file

Installation

Open the command palette and run Package Control: Install Package, then select GitDiffView.

Instructions

From the command palette select: Git Diff View: Toggle. Or toggle the git diff view with ctrl+shift+g(Linux) or alt+shift+g(Mac). The git diff view won't open if there are no git changes.

Inside the status view, the following keybindings are available:

  a - stage/unstage a file
  d - dismiss changes to a file
  g - go to a file

Type of modification will be shown in the git status, next to the file name. Here is a list of the types:

  "??" - Untracked
  " A" - Added
  "AM" - Added and Staged
  " M" - Modified
  "MM" - Modified and Staged
  " D" - Deleted
  " R" - Renamed
  " C" - Copied
  "UU" - Unmerged(Conflict)

Workflow Example

HowToUseIt.webm

NOTE: For other commands like git commit, git push, git pull, use a different plugin like Git or GitSavvy.

About

A Sublime Text plugin that lets you see all modified files and preview their changes.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages