问题描述
我在使用TortoiseGit 1.8.16.0版(git版本2.6.2.windows.1)创建的git仓库中有一个Visual Studio解决方案。
我刚刚更新了Visual Studio 2015到2015 Update 1,它停止跟踪我的文件上的更改。它也不会允许我提交任何内容。这是一种已知的问题吗?是否有解决方案?
$ hr
$ b
更新
(具有讽刺意味的标题...)
VS跟踪未保存的文件为已更改
并保存的文件显示为未更改
切换分支的行为是正确的,并且如果有未提交的(真实的)更改会导致错误
更新2 可以在输出窗口中显示与错误有关的任何信息: 打开存储库: 无法打开'C:/ [项目路径] .VC.opendb':进程无法访问该文件,因为它正在被另一个进程使用。 / p> 无法打开'C:/ [项目路径] .VC.opendb':进程无法访问该文件,因为它正在被另一个进程使用。 我和你有完全相同的问题,并花费数小时的时间试图让它起作用,包括重新克隆。 我解决了它在我的最后,将* .VC.opendb和* .VC.db文件添加到我的项目的 .gitignore 文件中。 当我返回到Visual Studio时,所有待处理的更改都显示出来。据我所知可以再次正常工作。 I have a Visual Studio solution inside a git repository created with TortoiseGit version 1.8.16.0 (git version 2.6.2.windows.1) I just updated Visual Studio from 2015 to 2015 Update 1, and it stopped tracking changes on my files. also it won't allow me to commit anything. Is this some sort of a known problem? are there any solutions? (ironic title...)VS tracks unsaved files as "changed"and saved files appear to be "unchanged" switching branches is behaves correctly and results in an error if there are uncommitted (real )changes update 2 could this in the output window could have anything to do with the error: Opening repositories: Could not open 'C:/[project path].VC.opendb': The process cannot access the file because it is being used by another process. Could not open 'C:/[project path].VC.opendb': The process cannot access the file because it is being used by another process. I had the exact same issue as you and spent hours trying to get it to work, including re-cloning. I solved it on my end by adding the *.VC.opendb and *.VC.db files to the .gitignore file of my project. As soon as I returned to Visual Studio all my pending changes were showing. As far as I can tell it's all working normally again. 这篇关于Git问题与Visual Studio 2015的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
$ b
update