1CG-ADMIN-UNCOMMIT(1)                                      CG-ADMIN-UNCOMMIT(1)
2
3
4

NAME

6       cg-admin-uncommit - undo a commit or a series of commits
7

SYNOPSIS

9       cg-admin-uncommit [-t] [COMMIT_ID]
10
11

DESCRIPTION

13       Takes a commit ID which is the earliest commit to be removed from the
14       repository. If no parameter is passed, it uncommits the latest commit
15       (HEAD). Read the CAVEATS section before using it for the first time.
16
17       This command is a close relative of cg-switch -f (which does
18       essentially the same thing, but is slightly more powerful at the
19       expense of a more elaborate usage). Do not confuse either with the
20       operation performed by cg-seek(1), which is meant only for temporary
21       excursions to the project history.
22
23

OPTIONS

25       -t     This optional parameter makes cg-admin-uncommit(1) to roll back
26              the tree as well to the previous commit. Without this option (by
27              default) Cogito keeps the tree in its current state, therefore
28              generating tree with local changes against the target commit,
29              consisting of the changes in the rolled back commits.
30
31       -h, --help
32              Print usage summary.
33
34       --long-help
35              Print user manual. The same as found in cg-admin-uncommit(1).
36

CAVEATS

38       This command can be dangerous! It is safe to do as long as you do not
39       push the commit out in the meantime, but you should NEVER uncommit an
40       already pushed out commit. Things will break for the fetchers since you
41       just broke the fast-forward merging mechanism (the new commit is not
42       descendant of the previous one), and the push command will refuse to
43       push again after you uncommitted a pushed out commit, too. At the
44       moment you pushed the commit out it's etched to the history, live with
45       that.
46
47
49       Copyright © Matt Porter, 2005 Copyright © Petr Baudis, 2005
50
51

SEE ALSO

53       cg-admin-uncommit is part of cogito(7), a toolkit for managing git(7)
54       trees.
55
56
57
58
59                                  12/11/2006              CG-ADMIN-UNCOMMIT(1)
Impressum