Introduction

The purpose of this document is to guide you on how to track NetBSD CVS source repository with git. We are going to make a "bulk import" and by this is meant that not all the CVS checkins with comments are going to be imported. If we wanted so, we would use the git-cvsimport(1) tool.

Download current source

To begin with, we must have a current CVS snapshot of the NetBSD source tree. I assume you already have one in /usr/src-git. If not, please consult this article in the official NetBSD documentation page.

Symbiosis

Since both CVS and Git are going to live together inside the same directory, it is essential to hide each one from the other. That is because we don't want CVS to track git files or vice versa. For this purpose we need two files inside the root directory of our source tree.

.cvsignore

Create a file named .cvsignore inside /usr/src-git and put the following lines in it:

.git/
.gitignore

.gitignore

Create a file named .gitignore inside /usr/src-git and put the following lines in it: