The following commands are provided to manage the state of your branch(es). Future versions of GitSavvy will include a full-featured branch view, similar to the status dashboard.
You will be shown a panel of local branches. Once you've made a selection, that branch will be checked out.
You will be prompted for a new branch name. Once entered, that branch will be created and checked out.
Reset the current active file to HEAD.
You will be shown a list of all local and remote branches. Once selected, that branch will be merged in the current branch. Any errors will be displayed, and any merge conflicts can be seen and addressed in the status dashboard.
While in a merge, running this command will reset the working tree back to pre-merge conditions.
Running this command while mid-merge will display a list of all files with merge conflicts. Once you've made a selection, that file will be reset to the condition it was in at the beginning of the merge, before you attempted to resolve the merge conflict.
Running this command opens a branch dashboard where you can view and manipulate local and remote branches.
Checks out the selected branch. If you have uncommitted changes, the action may fail.
You will be prompted for a new branch name. Once entered, a branch will be created from HEAD and will be checked out.
The selected branch will be deleted. This also works for remote branches, so use with caution.
The selected branch will be deleted (and will continue if changes are unmerged). This also works for remote branches, so use with caution.
You will be prompted to enter a new branch name. Once entered, the selected branch will be renamed.
You will be prompted for a remote and remote branch. Once supplied, the selected branch will be configured to track the remote branch.
You will be prompted for a remote. Once supplied, the selected branch will be pushed.
You will be prompted for a remote. Once supplied, all local branches will be pushed to the remote.
The selected branch will be merged into the active branch. If the merge cannot complete, you will be notified and will be required to resolve the conflicts.
This action also merged the selected branch into active. However, it only works for remote branches, and will first fetch from the selected remote before the branch is merged.
A scratch view will be opened, showing the diff between the selected branch and the active branch.
A scratch view will be opened, showing the commit diff between the selected branch and the active branch. Hitting Enter
will open a panel where you can choose to show commit
, Checkout commit
, Cherry-pick commit
and Refresh
. Refresh is also available by pressing r
.
By default, remote branches are not displayed in the branch dashboard. In many cases, there are many remote branches that would overwhelm the interface. To view, press e
. To hide, press e
again.
If you would like the default behavior to be inverted, set show_remotes_in_branch_dashboard
in GitSavvy.sublime-settings
.
You will be prompted to enter a short branch description. Enter an empty one to clear the existing one.