1

我正在尝试将 cvs 迁移到 git,但是当 Attic 文件夹中的存储库没有被迁移。它是单独迁移的 README.txt 文件。

如何正确迁移其中的阁楼文件夹?

简历:

 ls -ltr /home/user/cvs/myproject/
total 4
-r--r-----. 1 cvs cvs 374 Aug 24  2015 README.txt,v
drwxr-x---. 2 cvs cvs  25 Aug 24  2015 Attic
drwxr-x---. 3 cvs cvs  20 Aug  8 12:39 resource
drwxr-x---. 3 cvs cvs  16 Aug  8 12:39 src

迁移后:

ls -ltr myproject-cvs2git/
total 4
-rw-r--r-- 1 root root 86 Aug 13 12:42 README.txt
4

1 回答 1

1

Attic中的子目录cvs用于不在主干 ('HEAD') 中或以前在 HEAD 中但已被删除的文件。

没有实际的Attic子目录,您会在相应的分支或 HEAD 的先前版本中找到任何myproject/path/to/Attic/file文件myproject-cvs2git/path/to/file

您应该发现这些已正确导入cvs2git到正确的分支中。如果您检查一个文件Attic并查看它所在的分支,您应该能够检查 git 以查看它是否存在。

于 2019-08-15T15:30:14.840 回答