PATH:
usr
/
share
/
doc
/
git-1.8.3.1
git-cvsimport(1) ================ NAME ---- git-cvsimport - Salvage your data out of another SCM people love to hate SYNOPSIS -------- [verse] 'git cvsimport' [-o <branch-for-HEAD>] [-h] [-v] [-d <CVSROOT>] [-A <author-conv-file>] [-p <options-for-cvsps>] [-P <file>] [-C <git_repository>] [-z <fuzz>] [-i] [-k] [-u] [-s <subst>] [-a] [-m] [-M <regex>] [-S <regex>] [-L <commitlimit>] [-r <remote>] [-R] [<CVS_module>] DESCRIPTION ----------- *WARNING:* `git cvsimport` uses cvsps version 2, which is considered deprecated; it does not work with cvsps version 3 and later. If you are performing a one-shot import of a CVS repository consider using link:http://cvs2svn.tigris.org/cvs2git.html[cvs2git] or link:https://github.com/BartMassey/parsecvs[parsecvs]. Imports a CVS repository into Git. It will either create a new repository, or incrementally import into an existing one. Splitting the CVS log into patch sets is done by 'cvsps'. At least version 2.1 is required. *WARNING:* for certain situations the import leads to incorrect results. Please see the section <<issues,ISSUES>> for further reference. You should *never* do any work of your own on the branches that are created by 'git cvsimport'. By default initial import will create and populate a "master" branch from the CVS repository's main branch which you're free to work with; after that, you need to 'git merge' incremental imports, or any CVS branches, yourself. It is advisable to specify a named remote via -r to separate and protect the incoming branches. If you intend to set up a shared public repository that all developers can read/write, or if you want to use linkgit:git-cvsserver[1], then you probably want to make a bare clone of the imported repository, and use the clone as the shared repository. See linkgit:gitcvs-migration[7]. OPTIONS ------- -v:: Verbosity: let 'cvsimport' report what it is doing. -d <CVSROOT>:: The root of the CVS archive. May be local (a simple path) or remote; currently, only the :local:, :ext: and :pserver: access methods are supported. If not given, 'git cvsimport' will try to read it from `CVS/Root`. If no such file exists, it checks for the `CVSROOT` environment variable. <CVS_module>:: The CVS module you want to import. Relative to <CVSROOT>. If not given, 'git cvsimport' tries to read it from `CVS/Repository`. -C <target-dir>:: The Git repository to import to. If the directory doesn't exist, it will be created. Default is the current directory. -r <remote>:: The Git remote to import this CVS repository into. Moves all CVS branches into remotes/<remote>/<branch> akin to the way 'git clone' uses 'origin' by default. -o <branch-for-HEAD>:: When no remote is specified (via -r) the 'HEAD' branch from CVS is imported to the 'origin' branch within the Git repository, as 'HEAD' already has a special meaning for Git. When a remote is specified the 'HEAD' branch is named remotes/<remote>/master mirroring 'git clone' behaviour. Use this option if you want to import into a different branch. + Use '-o master' for continuing an import that was initially done by the old cvs2git tool. -i:: Import-only: don't perform a checkout after importing. This option ensures the working directory and index remain untouched and will not create them if they do not exist. -k:: Kill keywords: will extract files with '-kk' from the CVS archive to avoid noisy changesets. Highly recommended, but off by default to preserve compatibility with early imported trees. -u:: Convert underscores in tag and branch names to dots. -s <subst>:: Substitute the character "/" in branch names with <subst> -p <options-for-cvsps>:: Additional options for cvsps. The options '-u' and '-A' are implicit and should not be used here. + If you need to pass multiple options, separate them with a comma. -z <fuzz>:: Pass the timestamp fuzz factor to cvsps, in seconds. If unset, cvsps defaults to 300s. -P <cvsps-output-file>:: Instead of calling cvsps, read the provided cvsps output file. Useful for debugging or when cvsps is being handled outside cvsimport. -m:: Attempt to detect merges based on the commit message. This option will enable default regexes that try to capture the source branch name from the commit message. -M <regex>:: Attempt to detect merges based on the commit message with a custom regex. It can be used with '-m' to enable the default regexes as well. You must escape forward slashes. + The regex must capture the source branch name in $1. + This option can be used several times to provide several detection regexes. -S <regex>:: Skip paths matching the regex. -a:: Import all commits, including recent ones. cvsimport by default skips commits that have a timestamp less than 10 minutes ago. -L <limit>:: Limit the number of commits imported. Workaround for cases where cvsimport leaks memory. -A <author-conv-file>:: CVS by default uses the Unix username when writing its commit logs. Using this option and an author-conv-file maps the name recorded in CVS to author name, e-mail and optional timezone: + --------- exon=Andreas Ericsson <ae@op5.se> spawn=Simon Pawn <spawn@frog-pond.org> America/Chicago --------- + 'git cvsimport' will make it appear as those authors had their GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL set properly all along. If a timezone is specified, GIT_AUTHOR_DATE will have the corresponding offset applied. + For convenience, this data is saved to `$GIT_DIR/cvs-authors` each time the '-A' option is provided and read from that same file each time 'git cvsimport' is run. + It is not recommended to use this feature if you intend to export changes back to CVS again later with 'git cvsexportcommit'. -R:: Generate a `$GIT_DIR/cvs-revisions` file containing a mapping from CVS revision numbers to newly-created Git commit IDs. The generated file will contain one line for each (filename, revision) pair imported; each line will look like + --------- src/widget.c 1.1 1d862f173cdc7325b6fa6d2ae1cfd61fd1b512b7 --------- + The revision data is appended to the file if it already exists, for use when doing incremental imports. + This option may be useful if you have CVS revision numbers stored in commit messages, bug-tracking systems, email archives, and the like. -h:: Print a short usage message and exit. OUTPUT ------ If '-v' is specified, the script reports what it is doing. Otherwise, success is indicated the Unix way, i.e. by simply exiting with a zero exit status. [[issues]] ISSUES ------ Problems related to timestamps: * If timestamps of commits in the CVS repository are not stable enough to be used for ordering commits changes may show up in the wrong order. * If any files were ever "cvs import"ed more than once (e.g., import of more than one vendor release) the HEAD contains the wrong content. * If the timestamp order of different files cross the revision order within the commit matching time window the order of commits may be wrong. Problems related to branches: * Branches on which no commits have been made are not imported. * All files from the branching point are added to a branch even if never added in CVS. * This applies to files added to the source branch *after* a daughter branch was created: if previously no commit was made on the daughter branch they will erroneously be added to the daughter branch in git. Problems related to tags: * Multiple tags on the same revision are not imported. If you suspect that any of these issues may apply to the repository you want to imort, consider using cvs2git: * cvs2git (part of cvs2svn), `http://subversion.apache.org/` GIT --- Part of the linkgit:git[1] suite
[+]
..
[-] gitworkflows.txt
[edit]
[-] git-name-rev.txt
[edit]
[-] git-status.html
[edit]
[-] git-difftool.txt
[edit]
[-] git-blame.html
[edit]
[-] git-rebase.html
[edit]
[-] git-push.html
[edit]
[-] git-count-objects.txt
[edit]
[-] mergetools-merge.txt
[edit]
[-] git-show-index.txt
[edit]
[-] gitcredentials.txt
[edit]
[-] git-status.txt
[edit]
[-] cmds-plumbinginterrogators.txt
[edit]
[-] git.txt
[edit]
[-] COPYING
[edit]
[-] git-replace.txt
[edit]
[-] git-cvsserver.txt
[edit]
[-] git-apply.html
[edit]
[-] gitweb.html
[edit]
[-] git-rm.html
[edit]
[-] git-cvsserver.html
[edit]
[-] git-fetch.html
[edit]
[-] git-daemon.html
[edit]
[-] mailmap.txt
[edit]
[-] git-for-each-ref.html
[edit]
[-] gitk.txt
[edit]
[-] diff-format.txt
[edit]
[-] git-parse-remote.html
[edit]
[-] gittutorial-2.html
[edit]
[-] git-repack.txt
[edit]
[-] gitcvs-migration.html
[edit]
[-] gitrevisions.txt
[edit]
[-] git-ls-files.html
[edit]
[-] git-rev-parse.html
[edit]
[-] git-show-ref.html
[edit]
[-] blame-options.txt
[edit]
[-] git-rev-list.txt
[edit]
[-] git-index-pack.txt
[edit]
[-] git-credential-cache.txt
[edit]
[-] git-show-ref.txt
[edit]
[-] pretty-formats.txt
[edit]
[-] git-shortlog.txt
[edit]
[-] pull-fetch-param.txt
[edit]
[-] git-rev-list.html
[edit]
[-] git-fmt-merge-msg.html
[edit]
[-] git-clean.txt
[edit]
[-] git-notes.txt
[edit]
[-] git-count-objects.html
[edit]
[-] git-clean.html
[edit]
[-] git.html
[edit]
[-] git-show-index.html
[edit]
[-] git-fsck.html
[edit]
[-] gitrepository-layout.html
[edit]
[-] git-cvsimport.txt
[edit]
[-] git-commit.html
[edit]
[-] git-tag.html
[edit]
[-] git-reflog.txt
[edit]
[-] git-sh-i18n.txt
[edit]
[-] git-stripspace.html
[edit]
[-] gitweb.txt
[edit]
[-] gitglossary.txt
[edit]
[-] git-shell.txt
[edit]
[-] git-prune.txt
[edit]
[-] gitignore.html
[edit]
[-] git-fast-export.html
[edit]
[-] git-get-tar-commit-id.html
[edit]
[-] git-http-fetch.html
[edit]
[-] gitweb.conf.html
[edit]
[-] git-notes.html
[edit]
[-] git-update-index.html
[edit]
[-] git-mailsplit.txt
[edit]
[-] cmds-synchingrepositories.txt
[edit]
[-] git-unpack-file.txt
[edit]
[-] git-verify-tag.html
[edit]
[-] gitdiffcore.html
[edit]
[-] git-branch.txt
[edit]
[-] git-request-pull.html
[edit]
[-] git-diff-files.txt
[edit]
[-] git-log.html
[edit]
[-] git-check-ignore.html
[edit]
[-] git-checkout-index.txt
[edit]
[-] git-cherry.html
[edit]
[-] git-diff-files.html
[edit]
[-] git-receive-pack.txt
[edit]
[-] git-mktree.html
[edit]
[-] git-instaweb.html
[edit]
[-] git-merge-file.html
[edit]
[-] README
[edit]
[-] git-stage.html
[edit]
[+]
howto
[-] git-tools.html
[edit]
[-] fetch-options.txt
[edit]
[-] git-remote.txt
[edit]
[-] git-merge-base.txt
[edit]
[-] git-pull.html
[edit]
[-] git-merge-index.html
[edit]
[-] githooks.txt
[edit]
[-] git-svn.txt
[edit]
[-] git-repo-config.html
[edit]
[-] git-instaweb.txt
[edit]
[+]
contrib
[-] git-describe.html
[edit]
[-] gitattributes.html
[edit]
[-] gitcli.html
[edit]
[-] git-fast-import.txt
[edit]
[-] git-checkout.html
[edit]
[-] merge-config.txt
[edit]
[-] revisions.txt
[edit]
[-] git-gc.txt
[edit]
[-] git-credential-store.txt
[edit]
[-] git-update-server-info.txt
[edit]
[-] git-rm.txt
[edit]
[-] cmds-ancillarymanipulators.txt
[edit]
[-] git-mailsplit.html
[edit]
[-] git-merge-one-file.txt
[edit]
[-] git-help.html
[edit]
[-] git-sh-i18n--envsubst.html
[edit]
[-] git-reflog.html
[edit]
[-] git-http-fetch.txt
[edit]
[-] git-check-ref-format.html
[edit]
[-] git-commit.txt
[edit]
[-] git-p4.txt
[edit]
[-] git-rev-parse.txt
[edit]
[-] git-check-ref-format.txt
[edit]
[-] git-merge-tree.html
[edit]
[-] git-read-tree.txt
[edit]
[-] git-check-attr.html
[edit]
[-] git-mailinfo.txt
[edit]
[-] git-mv.html
[edit]
[-] git-quiltimport.txt
[edit]
[-] git-daemon.txt
[edit]
[-] git-ls-files.txt
[edit]
[-] git-web--browse.txt
[edit]
[-] git-patch-id.txt
[edit]
[-] git-bisect-lk2009.html
[edit]
[-] git-stripspace.txt
[edit]
[-] gitmodules.html
[edit]
[-] git-archive.html
[edit]
[-] git-gc.html
[edit]
[-] git-gui.txt
[edit]
[-] pretty-options.txt
[edit]
[-] git-column.txt
[edit]
[-] git-fetch-pack.txt
[edit]
[-] git-log.txt
[edit]
[-] gitworkflows.html
[edit]
[-] gitcore-tutorial.html
[edit]
[-] git-prune.html
[edit]
[-] git-cvsexportcommit.txt
[edit]
[-] git-rerere.txt
[edit]
[-] gitremote-helpers.html
[edit]
[-] git-quiltimport.html
[edit]
[-] git-fsck.txt
[edit]
[-] git-peek-remote.txt
[edit]
[-] git-imap-send.txt
[edit]
[-] gitk.html
[edit]
[-] git-hash-object.html
[edit]
[-] git-push.txt
[edit]
[-] git-blame.txt
[edit]
[-] git-upload-archive.html
[edit]
[-] git-replace.html
[edit]
[+]
technical
[-] git-upload-pack.html
[edit]
[-] git-sh-i18n.html
[edit]
[-] git-init.html
[edit]
[-] git-bisect.txt
[edit]
[-] git-http-push.html
[edit]
[-] git-diff-index.html
[edit]
[-] git-lost-found.html
[edit]
[-] git-http-backend.html
[edit]
[-] date-formats.txt
[edit]
[-] git-mailinfo.html
[edit]
[-] git-show-branch.html
[edit]
[-] gitnamespaces.txt
[edit]
[-] git-cherry.txt
[edit]
[-] git-grep.html
[edit]
[-] git-repo-config.txt
[edit]
[-] git-ls-tree.html
[edit]
[-] git-bisect.html
[edit]
[-] git-send-email.txt
[edit]
[-] git-credential-store.html
[edit]
[-] git-rerere.html
[edit]
[-] git-var.html
[edit]
[-] git-remote.html
[edit]
[-] git-tools.txt
[edit]
[-] git-pack-objects.txt
[edit]
[-] git-credential-cache--daemon.html
[edit]
[-] git-update-index.txt
[edit]
[-] git-gui.html
[edit]
[-] git-svn.html
[edit]
[-] gitweb.conf.txt
[edit]
[-] gitignore.txt
[edit]
[-] git-http-backend.txt
[edit]
[-] howto-index.html
[edit]
[-] git-stash.html
[edit]
[-] git-mergetool.html
[edit]
[-] git-relink.txt
[edit]
[-] git-for-each-ref.txt
[edit]
[-] cmds-foreignscminterface.txt
[edit]
[-] git-shortlog.html
[edit]
[-] cmds-ancillaryinterrogators.txt
[edit]
[-] git-credential.txt
[edit]
[-] git-mergetool--lib.html
[edit]
[-] git-submodule.txt
[edit]
[-] git-repack.html
[edit]
[-] git-merge.html
[edit]
[-] git-show.txt
[edit]
[-] gitcvs-migration.txt
[edit]
[-] diff-options.txt
[edit]
[-] git-sh-setup.html
[edit]
[-] git-config.html
[edit]
[-] git-annotate.txt
[edit]
[-] gitglossary.html
[edit]
[-] git-pull.txt
[edit]
[-] git-mergetool--lib.txt
[edit]
[-] rev-list-options.txt
[edit]
[-] git-fetch.txt
[edit]
[-] gitcli.txt
[edit]
[-] git-fsck-objects.html
[edit]
[-] git-stash.txt
[edit]
[-] git-pack-refs.html
[edit]
[-] git-reset.txt
[edit]
[-] cmds-mainporcelain.txt
[edit]
[-] git-hash-object.txt
[edit]
[-] gitmodules.txt
[edit]
[-] git-cat-file.html
[edit]
[-] git-bisect-lk2009.txt
[edit]
[-] git-receive-pack.html
[edit]
[-] git-p4.html
[edit]
[-] mergetools-diff.txt
[edit]
[-] git-cvsimport.html
[edit]
[-] gitremote-helpers.txt
[edit]
[-] git-column.html
[edit]
[-] git-prune-packed.html
[edit]
[-] glossary-content.txt
[edit]
[+]
RelNotes
[-] git-rebase.txt
[edit]
[-] git-config.txt
[edit]
[-] git-pack-refs.txt
[edit]
[-] git-merge-index.txt
[edit]
[-] git-add.html
[edit]
[-] gitrevisions.html
[edit]
[-] git-cherry-pick.txt
[edit]
[-] git-symbolic-ref.txt
[edit]
[-] git-annotate.html
[edit]
[-] git-clone.txt
[edit]
[-] git-parse-remote.txt
[edit]
[-] git-diff.html
[edit]
[-] git-diff-index.txt
[edit]
[-] git-mergetool.txt
[edit]
[-] git-update-ref.txt
[edit]
[-] git-lost-found.txt
[edit]
[-] git-tar-tree.txt
[edit]
[-] git-update-server-info.html
[edit]
[-] git-upload-pack.txt
[edit]
[-] git-commit-tree.txt
[edit]
[-] git-clone.html
[edit]
[-] git-help.txt
[edit]
[-] git-send-email.html
[edit]
[-] everyday.html
[edit]
[-] git-index-pack.html
[edit]
[-] git-mktree.txt
[edit]
[-] git-fast-import.html
[edit]
[-] git-bundle.txt
[edit]
[-] git-am.txt
[edit]
[-] gittutorial-2.txt
[edit]
[-] git-remote-testgit.html
[edit]
[-] git-diff-tree.txt
[edit]
[-] cmds-synchelpers.txt
[edit]
[-] git-diff-tree.html
[edit]
[-] git-prune-packed.txt
[edit]
[-] cmds-plumbingmanipulators.txt
[edit]
[-] howto-index.txt
[edit]
[-] git-tag.txt
[edit]
[-] git-send-pack.html
[edit]
[-] git-credential-cache--daemon.txt
[edit]
[-] config.txt
[edit]
[-] git-remote-fd.html
[edit]
[-] git-revert.txt
[edit]
[-] gitdiffcore.txt
[edit]
[-] git-fast-export.txt
[edit]
[-] git-upload-archive.txt
[edit]
[-] git-diff.txt
[edit]
[-] git-merge-one-file.html
[edit]
[-] git-archive.txt
[edit]
[-] diff-generate-patch.txt
[edit]
[-] git-http-push.txt
[edit]
[-] git-init-db.html
[edit]
[-] git-cat-file.txt
[edit]
[-] git-fetch-pack.html
[edit]
[-] git-whatchanged.html
[edit]
[-] git-cvsexportcommit.html
[edit]
[-] git-patch-id.html
[edit]
[-] git-name-rev.html
[edit]
[-] git-apply.txt
[edit]
[-] gittutorial.txt
[edit]
[-] git-shell.html
[edit]
[-] git-verify-pack.html
[edit]
[-] git-write-tree.html
[edit]
[-] git-request-pull.txt
[edit]
[-] git-remote-testgit.txt
[edit]
[-] merge-strategies.txt
[edit]
[-] git-write-tree.txt
[edit]
[-] git-init-db.txt
[edit]
[-] git-revert.html
[edit]
[-] git-remote-ext.html
[edit]
[-] urls.txt
[edit]
[-] git-credential.html
[edit]
[-] git-peek-remote.html
[edit]
[-] git-stage.txt
[edit]
[-] git-am.html
[edit]
[-] git-verify-pack.txt
[edit]
[-] git-filter-branch.txt
[edit]
[-] git-unpack-objects.html
[edit]
[-] git-format-patch.html
[edit]
[-] diff-config.txt
[edit]
[-] git-remote-helpers.html
[edit]
[-] git-pack-redundant.txt
[edit]
[-] git-verify-tag.txt
[edit]
[-] git-describe.txt
[edit]
[-] git-remote-fd.txt
[edit]
[-] git-bundle.html
[edit]
[-] git-show.html
[edit]
[-] gitattributes.txt
[edit]
[-] gittutorial.html
[edit]
[-] git-ls-tree.txt
[edit]
[-] git-get-tar-commit-id.txt
[edit]
[-] git-branch.html
[edit]
[-] merge-options.txt
[edit]
[-] git-filter-branch.html
[edit]
[-] i18n.txt
[edit]
[-] git-check-ignore.txt
[edit]
[-] git-tar-tree.html
[edit]
[-] git-sh-i18n--envsubst.txt
[edit]
[-] git-whatchanged.txt
[edit]
[-] gitcore-tutorial.txt
[edit]
[-] gitrepository-layout.txt
[edit]
[-] git-mktag.txt
[edit]
[-] git-fmt-merge-msg.txt
[edit]
[-] git-ls-remote.html
[edit]
[-] git-citool.html
[edit]
[-] git-citool.txt
[edit]
[-] user-manual.html
[edit]
[-] git-pack-redundant.html
[edit]
[-] git-mv.txt
[edit]
[-] git-submodule.html
[edit]
[-] git-grep.txt
[edit]
[-] git-unpack-file.html
[edit]
[-] git-mktag.html
[edit]
[-] git-update-ref.html
[edit]
[-] git-symbolic-ref.html
[edit]
[-] githooks.html
[edit]
[-] git-pack-objects.html
[edit]
[-] git-cherry-pick.html
[edit]
[-] everyday.txt
[edit]
[-] git-unpack-objects.txt
[edit]
[-] git-read-tree.html
[edit]
[-] git-show-branch.txt
[edit]
[-] git-merge-tree.txt
[edit]
[-] git-merge.txt
[edit]
[-] git-ls-remote.txt
[edit]
[-] git-merge-base.html
[edit]
[-] git-imap-send.html
[edit]
[-] gitcredentials.html
[edit]
[-] git-commit-tree.html
[edit]
[-] git-format-patch.txt
[edit]
[-] git-web--browse.html
[edit]
[-] git-sh-setup.txt
[edit]
[-] git-var.txt
[edit]
[-] gitnamespaces.html
[edit]
[-] git-add.txt
[edit]
[-] git-checkout-index.html
[edit]
[-] docbook-xsl.css
[edit]
[-] git-merge-file.txt
[edit]
[-] git-reset.html
[edit]
[-] git-fsck-objects.txt
[edit]
[-] git-check-attr.txt
[edit]
[-] git-difftool.html
[edit]
[-] urls-remotes.txt
[edit]
[-] git-send-pack.txt
[edit]
[-] git-remote-ext.txt
[edit]
[-] git-checkout.txt
[edit]
[-] git-relink.html
[edit]
[-] user-manual.txt
[edit]
[-] sequencer.txt
[edit]
[-] git-credential-cache.html
[edit]
[-] cmds-purehelpers.txt
[edit]
[-] git-init.txt
[edit]