Skip to content

Latest commit

 

History

History
31 lines (16 loc) · 1.83 KB

commit.md

File metadata and controls

31 lines (16 loc) · 1.83 KB

Committing

There are several ways to make a commit, both through the status view and through the command palette.

git: commit

This command can be invoked by both the command palette and the status dashboard, and opens a special view where you can make a commit. The view includes instructions for how to complete and how to abort the action.

GitHub integration is provided to provide easy access to issues and contributors. More information can be found in their respective sections.

git: commit including unstaged files

This command is similar to the above git: commit command. However, once you have provided the commit message, all unstaged changes will be added to the index before the commit is made.

git: amend previous commit

This command is similar to the above git: commit command. However, instead of creating a new commit, this command will modify the previous command.

The commit view will be pre-populated with the previous commit message. Proceeding will update the commit message, and the commit's diff will be amended with any changes present in the index.

git: quick commit

When invoking this palette command, Sublime will prompt you for a one-line commit message (you will not see the GitSavvy commit view). Pressing Enter will invoke the commit action, and pressing Escape will abort.

This command is only available via the command palette.

git: quick stage current file and commit

When invoking this palette command, Sublime will prompt you for a one-line commit message. Before making the commit, the currently open file will be staged and included in the subsequent commit.

Keep in mind that any other changes that have been staged will also be included in the commit. This command is only available via the command palette.