cg-seek(1)
NAME
cg-seek - seek the working tree to a given commit
SYNOPSIS
cg-seek [COMMIT_ID].sp
DESCRIPTION
Arrayworking tree to _another_ branch, use cg-clone(1) to create a new
tree for the new branch, or cg-switch(1) to also change your current tree to use the new branch..sp Note that during the time you
are seeked out, commits, merges, and some other operations are
blocked, since the next cg-seek(1) or cg-reset(1) invocation will
happily wipe out their products silently. You can override this
in the cg-commit(1) command by passing it a -f parameter - this
can be useful e.g. when you seeked to a commit which cannot be
compiled and you want to commit a compilation fix, as long as you
are aware that the commit of the fix will be rendered unreachable
(you will be able to get back to it only if you remember its ID)
at the moment you do next seek or a reset. If you want to save
the commit, you can save it to a separate branch using cg-switch
-n..sp Takes the target commit ID to seek to as an argument..sp
OPTIONS
- -h, --help
- Print usage summary.
- --long-help
- Print user manual. The same as found in cg-seek(1).
NOTES
- Arrayyour branch to a different commit id (forgetting its current contents), you can use the cg-switch(1) command:.sp
$ cg-switch -f -r COMMIT_ID CURRENT_HEAD_NAME - Note that this command has some serious caveats! Please
- read the cg-switch(1) documentation for details..sp
COPYRIGHT
Copyright © Petr Baudis, 2005.sp
SEE ALSO
- Array12/05/2006