Skip to content

predragnikolic/sublime-git-diff-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Diff View

Get a quick overview of changes before committing them.

Features

  • Show modified files (AKA "Status View")
  • View diff for a file. (AKA "Diff View")
  • Stage/Unstage files/hunks
  • Discard changes to files/hunks
  • Goto a file

Example

Getting Started

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

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

Keybindings in Status View (the right view)

  • a / space - stage/unstage file
  • d / backspace - dismiss file changes
  • g - open file

Keybindings in Diff View (the left view)

  • a / space - stage/unstage hunk
  • d / backspace - dismiss hunk change

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

Contributors 2

  •  
  •  

Languages