---
name: "cg-export"
section: "1"
platform: "linux"
package: "cogito"
version: "0.18.2-1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/cg-export"
---

# cg-export(1)

export contents of a particular revision

## NAME

cg-export - export contents of a particular revision

## SYNOPSIS

cg-export \[-r TREE\_ID\] DESTFILE.sp

## DESCRIPTION

Takes a destination and optionally a tree ID as a parameter, defaulting to *HEAD*..sp The destination can be either a .tar, .tar.gz, .tar.bz2 or .tgz for generating a tarball. Other destination specifiers are assumed to be directory names, and the tree is exported to the given directory..sp

## OPTIONS

- \-r TREE\_ID

  Base the export on the given tree.

- \-h, --help

  Print usage summary.

- \--long-help

  Print user manual. The same as found in [**cg-export**(1)](/cg-export/1.md).

## COPYRIGHT

Copyright © Johannes E. Schindelin, 2005.sp

## SEE ALSO

cg-export is part of [**cogito**(7)](/cogito/7.md), a toolkit for managing [**git**(7)](/git/7.md) trees..sp
