---
title: 'repo stash'
weight: 320
generated: true
description: 'Stash working changes'
---

<!-- Generated by scripts/gen-cli-docs.sh from the libfossil --help output. Do not edit; change the help text in cli/ and run make docs-gen. -->

```text
Usage: libfossil repo stash <command>

Stash working changes

Flags:
  -h, --help           Show context-sensitive help.
  -R, --repo=STRING    Path to repository file
  -v, --verbose        Verbose output

Commands:
  repo stash save [flags]
    Stash working changes

  repo stash pop [flags]
    Apply top stash and drop it

  repo stash apply [<id>] [flags]
    Apply stash without dropping

  repo stash ls
    List stash entries

  repo stash drop <id>
    Remove stash entry

  repo stash clear
    Remove all stash entries
```

## repo stash save

```text
Usage: libfossil repo stash save [flags]

Stash working changes

Flags:
  -h, --help           Show context-sensitive help.
  -R, --repo=STRING    Path to repository file
  -v, --verbose        Verbose output

  -m, --message=""     Stash message
  -d, --dir="."        Checkout directory
```

## repo stash pop

```text
Usage: libfossil repo stash pop [flags]

Apply top stash and drop it

Flags:
  -h, --help           Show context-sensitive help.
  -R, --repo=STRING    Path to repository file
  -v, --verbose        Verbose output

  -d, --dir="."        Checkout directory
```

## repo stash apply

```text
Usage: libfossil repo stash apply [<id>] [flags]

Apply stash without dropping

Arguments:
  [<id>]    Stash ID to apply (default: latest)

Flags:
  -h, --help           Show context-sensitive help.
  -R, --repo=STRING    Path to repository file
  -v, --verbose        Verbose output

  -d, --dir="."        Checkout directory
```

## repo stash ls

```text
Usage: libfossil repo stash ls

List stash entries

Flags:
  -h, --help           Show context-sensitive help.
  -R, --repo=STRING    Path to repository file
  -v, --verbose        Verbose output
```

## repo stash drop

```text
Usage: libfossil repo stash drop <id>

Remove stash entry

Arguments:
  <id>    Stash ID to drop

Flags:
  -h, --help           Show context-sensitive help.
  -R, --repo=STRING    Path to repository file
  -v, --verbose        Verbose output
```

## repo stash clear

```text
Usage: libfossil repo stash clear

Remove all stash entries

Flags:
  -h, --help           Show context-sensitive help.
  -R, --repo=STRING    Path to repository file
  -v, --verbose        Verbose output
```
