OptionalprojectRoot: stringApply a git stash (restore from backup).
OptionalstashRef: stringRecord the working tree state of tracked files without touching the
working tree, the index or the stash list (git stash create). With no
local changes the snapshot is HEAD. Returns the commit, or undefined
outside a git repository or without any commit.
Create a git stash as backup.
Optionalfiles: string[]Get changes in working directory.
Get git root directory.
Check if current directory is a git repository.
Check if working directory is clean.
List all stashes.
Content of a file as recorded in a snapshot commit. Fails when the file lies outside the repository root or was not tracked at snapshot time.
Git integration for backup and rollback using git stash.