I set aside the existing git ( originalrepo) repository on my own github, called this repo myrepo.
I edited two or three files in a specific directory here, say mydir.
However, mydirit is not located directly in myrepo, instead it is similar to myrepo/dirA/dirB/mydir.
Now my group has set up a separate git repository called grouprepo, and I want to move the files that I worked on this new repo.
I want to transfer it directly to grouprepo/mydirand save the commit history, but only those commits that I made (not including thousands of commits from originalrepo), and only move the files to which I made changes.
Is it possible? If so, how?
source
share