cg-help cg-log
cogito - version control system
cg-COMMAND <arg>…
Cogito is a version control system layered on top of the git tree history storage system. Amongst some of the noteworthy features, Cogito has support for branching, tagging and multiple backends for distributing repositories (local files, rsync, HTTP, ssh).
Cogito is implemented as a series of bash(1) scripts on top of git(7) (a content-tracking filesystem) with the goal of providing an interface for working with the GIT database in a manner similar to other SCM tools (like CVS, BitKeeper or Monotone).
The Cogito commands can be split into regular commands and advanced commands. The regular commands are those used for normal interacting with the repository, while the advanced commands can be used for administrating the repository and should to some degree be regarded as low-level and in some cases dangerous.
Below an overview of the available commands are listed. For details on individual commands, do e.g.
cg-help cg-log
or
cg-log --long-help
You can find the quick overview of the most useful commands and concepts in cg-ref(7).
Add new files to the repository
Add new remote branch
Change an existing remote branch repository URL
List configured remote branches
Remove untracked files from the working tree
Clone a remote repository
Commit changes in the working tree to the repository
Show changes in the diff format
Export contents of a particular revision
Fetch changes from a remote branch to the local repository
Show help for Cogito commands
Initialize new repository
Show the list of changes
Merge a branch to the current branch
Create a patch from a commit or a series of commits
Rename or move files in the repository
Get the SHA1 id of an object associated with the given symbolic id
Apply a patch from a file, standard input, or a commit
Push changes to a remote repository
Reset the state of the working tree
Restore files in the working tree to the given state
Remove files from the repository
Seek the working tree to a given commit
Show status of the repository and your working tree
Switch the working tree to a different (or new) local branch
Mark certain commit with a tag
List existing tags
Show information about given tag(s)
Fetch and merge changes from a remote repository
Show the version of the Cogito toolkit
Show the version of the Cogito toolkit
Cat file(s) by filename from given tree or revision
List contents of a particular tree in the repository
Rewrite revision history
Setup a public repository
Undo a commit or a series of commits
There are a few helper commands that are not meant to be used from the command line. They provide a library of generic functions used by many of the real Cogito commands. You can safely ignore them, unless you want to contribute to Cogito development.
Show a cute progressbar for cg-fetch
git-rev-list | git-diff-tree --stdin following renames
Common code shared by the Cogito toolkit
Merge two revisions of a file
Indicates a branch name added with the cg-branch-add(1) or cg-switch(1) commands.
Indicates a Cogito command. The cg- prefix is optional.
Indicates a local file path or a URI. See cg-branch-add(1) for a list of supported URI schemes.
Indicates an ID resolving to a commit. The following expressions can be used interchangeably as IDs:
empty string, this or HEAD (current HEAD)
branch name (as registered with cg-branch-add(1))
tag name (as registered with cg-tag(1))
date string (as recognized by the date tool)
shortcut object hash (shorted unambiguous hash lead)
commit object hash (as returned by cg-object-id -c)
tree object hash (as returned by cg-object-id -t)
Indicates a free form tag name.
Indicates a git object type i.e.: blob, commit, tree or tag.
Indicates a free form user name.
Indicates an already existing filename - always relative to the root of the repository.
This file is read on startup if stdout is a terminal and may contain information about default command line options. Each line consists of a command name and a list of options. Lines not starting with a Cogito command name are ignored. To have cg-log and cg-diff colorize the output put the following in ~/.cgrc:
log -c diff -c
You can prevent Cogito from reading ~/.cgrc by setting the CG_NORC environment variable.
Copyright © Petr Baudis, 2005.
Cogito is based on git(7). A quick Cogito reference sheet is in cg-ref(7). Cogito homepage is at http://git.or.cz/cogito.