Rechercher une page de manuel
cg-reset
Langue: en
Version: 02/24/2009 (fedora - 04/07/09)
Section: 1 (Commandes utilisateur)
NAME
cg-reset - reset the state of the working treeSYNOPSIS
cg-reset [--adds-removes]
DESCRIPTION
Reverts the working tree to a consistent state before any changes to it (including merges etc.) were done. This command will rebuild the state of the tree according to the commit of .git/refs/heads/master, so if your working tree got into basically any inconsistent state, this will cure it.
Basically, this is the opposite of gitm[blue]1m[][1] in some sense.
This command is complementary to gitm[blue]1m[][2], which only brings individual files in sync with their state at the time of the last commit.
OPTIONS
--adds-removes
- Reset ONLY the so-called "index" file. This effectively means that any adds and removes you did will be unrecorded (but if you removed the file physically as well, that will not be undone - run cg-restore to restore it physically afterwards).
-h, --help
- Print usage summary.
--long-help
- Print user manual. The same as found in gitm[blue]1m[][3].
COPYRIGHT
Copyright © Petr Baudis, 2005
SEE ALSO
cg-reset 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-commit
- 2.
- 1
- [set $man.base.url.for.relative.links]/cg-restore
- 3.
- 1
- [set $man.base.url.for.relative.links]/cg-reset
- 4.
- 7
- [set $man.base.url.for.relative.links]/cogito
- 5.
- 7
- [set $man.base.url.for.relative.links]/git
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre