Copy changes from external unprepared directory to split working copy of Git

I have two copies of the project. One uses CVS and the other uses the Git repository. Now I have made changes to a copy of the project that uses CVS, and I want these changes to be applied to my Git repository. How to import changes from a CVS project into a Git repository? Is there a command or a built-in mechanism for this?

+4
source share
1 answer

You can use the --work-treecommand option git:

git --work-tree=/path/to/cvs/project --git-dir==/path/to/your/repo/.git status
git --work-tree=/path/to/cvs/project --git-dir==/path/to/your/repo/.git add .

You will see your CVS content as the working tree of your git repository.

git, --git-dir.

cd /path/to/your/repo/
git --work-tree=/path/to/cvs/project status
git --work-tree=/path/to/cvs/project add .
+6

Source: https://habr.com/ru/post/1545946/


All Articles