git-cvs

How to import CVS to git scm?

落爺英雄遲暮 提交于 2019-11-29 08:01:40
In order to import a revision of a CVS module, I am using: /usr/lib/git-core/git-cvsimport -a -i -p r,revisionname -k -v -d :pserver:user@xxx.com:2401/srv/cvs/rootname modulename It works for a while and then I get something like cvsps got an error. How do I determine what the cvsps error is? reza Gave up on this approach and have used cvs2git . The cvs2git is a tool that can be used to migrate CVS repositories to newer version control tools, including git. Sample usage: cvs2git \ --blobfile=cvs2git-tmp/git-blob.dat \ --dumpfile=cvs2git-tmp/git-dump.dat \ --username=cvs2git \ /path/to/cvs/repo

How to import and keep updated a CVS repository in Git? [closed]

爷,独闯天下 提交于 2019-11-28 16:05:58
There is a central repository in CVS, and I would like to use it with Git locally, and then send my changes back to CVS. What can I accomplish that on a daily basis? The tasks I would like to accomplish are: importing branches, getting history in GIT-like format, and exporting back my changes/commits to the centralized server BTW, I have also looked at Best practices for using git with CVS . But It didn't work and I couldn't figure out what I missed or did wrong. gpoo What I have done in the past is: Import the CVS repository Using: $ git cvsimport -C target-cvs -r cvs -k -vA authors-file.txt

Reverting part of a commit with git

浪子不回头ぞ 提交于 2019-11-28 13:34:01
问题 I want to revert a particular commit in git. Unfortunately, our organization still uses CVS as a standard, so when I commit back to CVS multiple git commits are rolled into one. In this case I would love to single out the original git commit, but that is impossible. Is there an approach similar to git add --patch that would allow me to selectively edit diffs to decide which parts of a commit to revert? 回答1: Use the --no-commit ( -n ) option to git revert , then unstage the changes, then use

Best practices for using git with CVS

こ雲淡風輕ζ 提交于 2019-11-27 00:17:43
What are your best practices and tips for using git to interface with a CVS repository? Brian Phillips I wrote up an answer to a similar question here . This works suprisingly well when you're forced to continue to push changes into a central CVS repository. Paul I've only worked with Git-CVS interactions to demo Git for a friend, but it was very straightforward. You need to install a current copy of cvsps . Git cvsimport uses this to access CVS history. We found that, for a large project, inital set-up was much faster by taking a full copy of the CVS repo onto your computer, and doing the git

How to export revision history from mercurial or git to cvs?

你说的曾经没有我的故事 提交于 2019-11-26 02:59:33
问题 I\'m going to be working with other people on code from a project that uses cvs. We want to use a distributed vcs to make our work and when we finish or maybe every once in a while we want to commit our code and all of our revision history to cvs. We don\'t have write access to the project\'s cvs repo so we can\'t commit very frequently. What tool can we use to export our revision history to cvs? Currently we were thinking of using git or mercurial but we could use another distributed vcs if