I want to migrate repository from TFS to Git. I would like to setup the Git repository first (.gitattributes
, LFS) and then start importing the TFS commits via git-tfs
.
Unfortunately I haven't found the correct steps to do it. Is it even possible? The main goal is to avoid later filtering the whole imported repository (like git lfs migrate import
).
When trying following:
git init
git lfs install
git lfs track *.bin
edit .gitattributes
export MSYS_NO_PATHCONV=1
git tfs init http://tfs:1234/tfs/defaultcollection $/repo/path
git tfs fetch
Two trees are created (there are two root commits), which is not desirable.