git 源代码控制提供程序 git 忽略和 ms-persist.xml 问题
git source control provider gitignore and ms-persist.xml issue
当我创建一个项目并使用 git 源代码控制提供程序然后排除一些 paths/files 它会在 .git 目录中创建一个文件 ms-persist.xml 到记录这些操作。
我在 git 忽略中没有看到这些 dir/file 排除的任何信息。
问题是,当我推送到 git 存储库时,visual studio 放置在 .git 目录中的 ms-persist.xml 没有被推送.
这意味着当其他人克隆项目并打开 visual studio 源代码控制时,他必须重新 select 所有目录并排除它们。
有没有办法让它与 git忽略文件一起工作,或者重新定位 ms-persist.xml 以便它在克隆时随项目一起提供?
We are using the standard nuget 2.7 that ships with vs2013. We use it
to install libraries into our C++ projects. Anyway, it turned out the
the issue can be resolved by shutting down visual studio, and then
deleting the ms-persist.xml file from the .git folder, and then
restarting visual studio. After that, it seemed to honor the
.gitignore file, and stopped trying to add files from the /packages
folder into the git repository. I'm guessing that the problem might
have been caused the the older git extension for Visual Studio 2012,
but stayed around because it was baked into that ms-persist file.
当我创建一个项目并使用 git 源代码控制提供程序然后排除一些 paths/files 它会在 .git 目录中创建一个文件 ms-persist.xml 到记录这些操作。
我在 git 忽略中没有看到这些 dir/file 排除的任何信息。
问题是,当我推送到 git 存储库时,visual studio 放置在 .git 目录中的 ms-persist.xml 没有被推送. 这意味着当其他人克隆项目并打开 visual studio 源代码控制时,他必须重新 select 所有目录并排除它们。
有没有办法让它与 git忽略文件一起工作,或者重新定位 ms-persist.xml 以便它在克隆时随项目一起提供?
We are using the standard nuget 2.7 that ships with vs2013. We use it to install libraries into our C++ projects. Anyway, it turned out the the issue can be resolved by shutting down visual studio, and then deleting the ms-persist.xml file from the .git folder, and then restarting visual studio. After that, it seemed to honor the .gitignore file, and stopped trying to add files from the /packages folder into the git repository. I'm guessing that the problem might have been caused the the older git extension for Visual Studio 2012, but stayed around because it was baked into that ms-persist file.