1CG-RESET(1) CG-RESET(1)
2
3
4
6 cg-reset - reset the state of the working tree
7
9 cg-reset [--adds-removes]
10
11
13 Reverts the working tree to a consistent state before any changes to it
14 (including merges etc.) were done. This command will rebuild the state
15 of the tree according to the commit of .git/refs/heads/master, so if
16 your working tree got into basically any inconsistent state, this will
17 cure it.
18
19 Basically, this is the opposite of cg-commit(1) in some sense.
20
21 This command is complementary to cg-restore(1), which only brings
22 individual files in sync with their state at the time of the last
23 commit.
24
25
27 --adds-removes
28 Reset ONLY the so-called "index" file. This effectively means
29 that any adds and removes you did will be unrecorded (but if you
30 removed the file physically as well, that will not be undone -
31 run cg-restore to restore it physically afterwards).
32
33 -h, --help
34 Print usage summary.
35
36 --long-help
37 Print user manual. The same as found in cg-reset(1).
38
40 Copyright © Petr Baudis, 2005
41
42
44 cg-reset is part of cogito(7), a toolkit for managing git(7) trees.
45
46
47
48
49 12/11/2006 CG-RESET(1)