cg-admin-rewritehist(1)

NAME

cg-admin-rewritehist - rewrite revision history

SYNOPSIS

cg-admin-rewritehist [-d TEMPDIR] [-r STARTREV]... [-k
KEEPREV]... [FILTERS] DESTBRANCH.sp

DESCRIPTION

Arrayeach revision. Those filters can modify each tree (e.g. removing
a file or running a perl rewrite on all files) or information
about each commit. Otherwise, all information (including original
commit times or merge information) will be preserved..sp The command takes the new branch name as a mandatory argument and the
filters as optional arguments. If you specify no filters, the
commits will be recommitted without any changes, which would normally have no effect and result with the new branch pointing to
the same branch as your current branch. (Nevertheless, this may
be useful in the future for compensating for some Git bugs or
such, therefore such a usage is permitted.).sp WARNING! The
rewritten history will have different ids for all the objects and
will not converge with the original branch. You will not be able
to easily push and distribute the rewritten branch. Please do not
use this command if you do not know the full implications, and
avoid using it anyway - do not do what a simple single commit on
top of the current version would fix..sp Always verify that the
rewritten version is correct before disposing the original
branch..sp

OPTIONS

ArrayTREE_ID [-p PARENT_COMMIT_ID]...

Arrayas parents instead of the original commit in further
commits.

EXAMPLE USAGE

Arraycase Darl committed a merge between P1 and P2, it will be propagated properly and all children of the merge will become merge
commits with P1,P2 as their parents instead of the merge commit..sp To restrict rewriting to only part of the history, use -r
or -k or both. Consider this history:.sp
D--E--F--G--H
/ /
A--B-----C
To rewrite only commits F,G,H, use:.sp

cg-admin-rewritehist -r F ...
To rewrite commits E,F,G,H, use one of these:.sp

cg-admin-rewritehist -r E -k C ...
cg-admin-rewritehist -k D -k C ...

COPYRIGHT

Copyright © Petr Baudis, 2006.sp

SEE ALSO

Array12/05/2006 CG-ADMIN
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout