Skip to content

Latest commit

 

History

History
224 lines (153 loc) · 8.15 KB

README.md

File metadata and controls

224 lines (153 loc) · 8.15 KB

GitSavvy Documentation

You've found GitSavvy's online documentation.

All documentation is in markdown. Beyond what you might expect, if you see a link to a different page, you can browse to that page by pressing SUPER-Enter while the link is under your cursor (CTRL-Enter on Windows).

To return to the previous page, press SUPER-Backspace (CTRL-Backspace on Windows).

If you run into any issues not addressed here, please feel free to open an issue and ask for help!

Highlighted Features

Command Palette

High-level commands

(Un)Staging changes

Committing

Stashing

Branch management

Tag management

Modifying history

Interacting with remotes

History

Ignoring files

Debug

Miscellaneous

Special Views

GitHub Integration

Custom Commands

If you have the need, you can add your own commands that take advantage of GitSavvy's access to your repo. To do so, create a new User.sublime-commands file in your User Package directory. Then, add an entry like so:

[
    {
        "caption": "git: pull --rebase",
        "command": "gs_custom",
        "args": {
            "output_to_panel": true,
            "args": ["pull", "--rebase"],
            "start_msg": "Starting pull (rebase)...",
            "complete_msg": "Pull complete."
        }
    }
]

For more information see custom commands documentation

git-flow Support

Settings

Settings for Views

For all syntax specific view we have a settings file. These are nothing extra from syntax specific settings. From any view you can click super+, on Mac or ctrl+, on Windows and Linux.

Editing Settings

To open the GitSavvy settings, simply run the Preferences: GitSavvy Settings command from the command palette. The default settings are documented with helpful inline comments. GitSavvy also supports project specific settings, run the Preference: GitSavvy Project Settings command and add the key "GitSavvy" as follows

{
    "settings": {
        "GitSavvy":
        {
            // GitSavvy settings go here
        }
    }
}

Preferences Editor is really good package for editing you settings.

Key Bindings

GitSavvy's default keyboard shortcuts are defined in the package's .sublime-keymap files:

The key bindings can be edited (and new ones added) via user defined .sublime-keymap files. These can be accessed easily by running the "Preferences: Key Bindings" command in the command palette.

Here is an example of defining ctrl+shift+s to run the git: status dashboard on a MacOS system:

${ST3_PACKAGE_DIR}/User/Default (OSX).sublime-keymap

[
    { "keys": ["ctrl+shift+s"], "command": "gs_show_status" }
]

The full list of GitSavvy's commands can be seen in Default.sublime-commands.