Rechercher une page de manuel

Chercher une autre page de manuel:

cg-restore

Langue: en

Version: 02/24/2009 (fedora - 04/07/09)

Section: 1 (Commandes utilisateur)

NAME

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

SYNOPSIS

cg-restore [-f] [-r ID] [FILE]...

DESCRIPTION

Restore given files to their original state. It recovers any files (or files passed as arguments to the command, respectively) removed locally whose removal was not recorded by gitm[blue]1m[][1].

If passed the -f parameter, it restores the files to their state as of the last commit (including bringing files removed with gitm[blue]1m[][1] back to life).

If passed the -r parameter, it will not restore the file as of the last commit, but to the state in the given commit, tree, or blob. The list of files is mandatory in this case.

For the "restore-to-last-commit" usage, this command is complementary to the gitm[blue]1m[][2] command, which forcefully abandons all the changes in the working tree and restores everything to a proper state (including unseeking, cancelling merge in progress and rebuilding indexes).

OPTIONS

-f

Restore even locally modified files to the version as of the last commit. Take care!

-r COMMIT_ID, -r TREE_ID, -r BLOB_ID

Restore the file to the state appropriate to the given ID. The list of files to recover is mandatory in this case.

-h, --help

Print usage summary.

--long-help

Print user manual. The same as found in gitm[blue]1m[][3].

Copyright © Petr Baudis, 2005

SEE ALSO

cg-restore is part of gitm[blue]7m[][4], a toolkit for managing gitm[blue]7m[][5] trees.

NOTES

1.
1
[set $man.base.url.for.relative.links]/cg-rm
2.
1
[set $man.base.url.for.relative.links]/cg-reset
3.
1
[set $man.base.url.for.relative.links]/cg-restore
4.
7
[set $man.base.url.for.relative.links]/cogito
5.
7
[set $man.base.url.for.relative.links]/git
16:18 espèce d'incultes, Jeff Buckley est l'ange de la musique tombé du
ciel pour nous livrer Grace et repartir aux cieux
16:20 16:18 Boum. Aie. Tenez voici Grace, prenez en soin.
Vroooouuuummmm.....