---
name: "ostree-rev-parse"
section: "1"
platform: "linux"
package: "ostree"
version: "2026.4-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/ostree-rev-parse"
---

# ostree-rev-parse(1)

Output the target of a rev

## NAME

ostree-rev-parse - Output the target of a rev

## SYNOPSIS

**ostree rev-parse**  {REV} {PATH}

## OPTIONS

- **--single**, **-S**

  If the repository has exactly one commit, then print it; any other case will result in an error.

## DESCRIPTION

Given a REV, outputs the checksum of the latest commit of that revision.

## EXAMPLE

**$ ostree rev-parse my-branch**

```
        ce19c41036cc45e49b0cecf6b157523c2105c4de1ce30101def1f759daafcc3e
```
