简体   繁体   中英

git subtree split issues after svn2git migration

I have just converted a large nested SVN repo to git using the git2svn command line tool and now have a git repo at D:\\project

Repo folder structure as follows:

\web\projectA
\web\projectB
\winforms\projectD
\winforms\projectE

I want to extract \\web\\projectA into a new git repo to upload to github.

After some research I have used git subtree split --prefix=web\\projectA -b justprojectA

However the new branch after running the subtree command still contains all the folders from the root of the repo and doesn't seem to have worked at all.

I am using git shell on WIndows 7.

I ended up initializing a new empty repo and pulling the split branch into it. After I did that the new repo showed the correct root folder and files.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM