1CG-RESTORE(1)                                                    CG-RESTORE(1)
2
3
4

NAME

6       cg-restore - restore files in the working tree to the given state
7

SYNOPSIS

9       cg-restore [-f] [-r ID] [FILE]...
10
11

DESCRIPTION

13       Restore given files to their original state. It recovers any files (or
14       files passed as arguments to the command, respectively) removed locally
15       whose removal was not recorded by cg-rm(1).
16
17       If passed the -f parameter, it restores the files to their state as of
18       the last commit (including bringing files removed with cg-rm(1) back to
19       life).
20
21       If passed the -r parameter, it will not restore the file as of the last
22       commit, but to the state in the given commit, tree, or blob. The list
23       of files is mandatory in this case.
24
25       For the "restore-to-last-commit" usage, this command is complementary
26       to the cg-reset(1) command, which forcefully abandons all the changes
27       in the working tree and restores everything to a proper state
28       (including unseeking, cancelling merge in progress and rebuilding
29       indexes).
30
31

OPTIONS

33       -f     Restore even locally modified files to the version as of the
34              last commit. Take care!
35
36       -r COMMIT_ID , -r TREE_ID , -r BLOB_ID
37              Restore the file to the state appropriate to the given ID. The
38              list of files to recover is mandatory in this case.
39
40       -h, --help
41              Print usage summary.
42
43       --long-help
44              Print user manual. The same as found in cg-restore(1).
45
47       Copyright © Petr Baudis, 2005
48
49

SEE ALSO

51       cg-restore is part of cogito(7), a toolkit for managing git(7) trees.
52
53
54
55
56                                  12/11/2006                     CG-RESTORE(1)
Impressum