Skip to content
Download

Stashes, worktrees and submodules

Stash your changes

Stash, on History's toolbar, puts away all your uncommitted changes, new files included, and leaves your working folder clean.
It's off when there's nothing to stash.

To bring the changes back, press Ctrl+Z (⌘Z on a Mac) outside any text box, or choose the stash in Recent actions.
That works while the stash is still your newest one, you're on the same commit, and your folder has no other changes.
See Undo.

Stashes, in the Repository view, lists your stashes with how many there are.
For now, Commitline can't apply, pop or drop a stash from that list.
To do it yourself, open a terminal with View › New Terminal and use git stash apply, git stash pop or git stash drop; Commitline shows the result.

A stash Commitline makes has Git's own message, naming the branch and commit.

Worktrees

Worktrees, in the Repository view, lists the repository's worktrees by folder.
To add or remove one, use git worktree in a terminal; to work in one, open its folder with Open repository….

The Repository view with Stashes open on one stash, WIP on main, and Worktrees open on two foldersThe Repository view with Stashes open on one stash, WIP on main, and Worktrees open on two folders

While a branch is out in another worktree, Commitline doesn't switch to it here.

Submodules

Submodules, in the Repository view, lists the repository's submodules by path.
To update them, use git submodule update in a terminal.
To work in a submodule, open its folder as a repository of its own.