<ul>
<li>Using <code>cvs2git</code> is relatively simple but that can depend on the complexity of your project.</li>
</ul>
<pre><code>mkdir /tmp/{cvs,git}
cp -a /path/to/cvs-repo /tmp/cvs
cd /tmp/git
git init
cvs2git --blobfile=blob.dat --dumpfile=dump.dat --root=/path/to/cvs-repo /tmp/cvs
git fast-import &lt; dump.dat
</code></pre>
<ul>
<li>In this section, <code>gitlab</code> references some other tools :
<a href="https://docs.gitlab.com/ee/user/project/import/cvs.html#how-to-migrate" rel="nofollow noreferrer">https://docs.gitlab.com/ee/user/project/import/cvs.html#how-to-migrate</a></li>
</ul>

CC BY-SA 4.0
2024-11-29T23:33:43.717Z
2024-11-29T23:33:43.717Z
YassineLbk
<p>I have been reading <a href="https://stackoverflow.com/questions/58081311/how-to-migrate-cvs-repository-with-multiple-modules-as-a-single-repository-into">all over the internet</a> about how to <a href="https://superuser.com/questions/1451521/how-to-convert-a-cvs-repo-to-git-using-cvs-fast-export/1451527#1451527">migrate from CVS</a> to git; mostly using a tool <code>cvs2git</code>. However, all of the posts and documentation are really old, and there are dead links for where to download this tool.</p>
<p>So, refreshing this old question: What is the latest and greatest method for wholesale migrating a cvs server to a git server? Like, if I have direct access to the server (running windows), what can I do? If it matters at all, this is for migration to gitlab self hosted</p>

<gitlab><git>
What is the latest and greatest way to migrate from cvs to git?
Christian Bongiorno
# What is the latest and greatest way to migrate from cvs to git?

(Asked by: username_0 on 2024-11-21)

I have been reading [all over the internet](https://stackoverflow.com/questions/58081311/how-to-migrate-cvs-repository-with-multiple-modules-as-a-single-repository-into) about how to [migrate from CVS](https://superuser.com/questions/1451521/how-to-convert-a-cvs-repo-to-git-using-cvs-fast-export/1451527#1451527) to git; mostly using a tool `cvs2git`. However, all of the posts and documentation are really old, and there are dead links for where to download this tool.

So, refreshing this old question: What is the latest and greatest method for wholesale migrating a cvs server to a git server? Like, if I have direct access to the server (running windows), what can I do? If it matters at all, this is for migration to gitlab self hosted

**Tags:** gitlab, git


---

## 1 answers

### Answer by username_1 on 2024-11-29. Score: 0

Using cvs2git is relatively simple but that can depend on the complexity of your project.

mkdir /tmp/{cvs,git}
cp -a /path/to/cvs-repo /tmp/cvs
cd /tmp/git
git init
cvs2git --blobfile=blob.dat --dumpfile=dump.dat --root=/path/to/cvs-repo /tmp/cvs
git fast-import < dump.dat


In this section, gitlab references some other tools :
https://docs.gitlab.com/ee/user/project/import/cvs.html#how-to-migrate


---

