使用Git联机的TFS的Visual Studio 2013:自动保存文件签到 [英] Visual Studio 2013 with TFS online using Git: Saving files checks-in automatically
问题描述
我目前正在使用Visual Studio Premium 2013 Update 3和Team Foundation Server Online并使用Git Repo。直到最近,我一直在使用Git Repo几个月。现在,每当我保存一个文件时,Visual Studio就像文件被签入一样。保存后,文件不再显示在包含的更改,排除的更改或未记录的文件中。我今天在解决方案中添加了大约6个新项目,每个项目都有适当的(添加)图标,但是在Studio中工作并全天保存文件时,它们现在都有一个锁定图标并显示为已选中在。
I'm currently using Visual Studio Premium 2013 Update 3 with Team Foundation Server Online and using a Git Repo. I've been using the Git Repo successfully for months up until recently. Now whenever I save a file, Visual Studio acts like the file was checked-in. Files no longer show in Included Changes, Excluded Changes, or Untracked Files once they've been saved. I added around 6 new projects to the solution today and every one of them started-out with the proper (add) icon, but upon working in Studio and saving files throughout the day, they all now have a lock icon and show as "Checked In".
我可以删除一个项目或文件并将其添加回来,这会导致签出符号,但只要我保存所有更改,就会重新检查-in。
I can remove a project or file and add it back, which causes the check-out symbol, but as soon as I save all changes, they're back to checked-in.
与在线回购协议同步不会传播更改,因此它们并未真正被识别为签入更改。
Sync with the online repo doesn't propagate the changes so they're not really being recognized as checked-in changes.
是否有其他人遇到过这个问题并找到了解决方案?
Has anyone else experienced this issue and found a solution?
更新:这可能特定于重命名解决方案文件。我已经重命名了解决方案文件,发生这种问题之后。按照以下答案中列出的步骤并与联机存储库提交/同步,打开解决方案备份现在可以正常工作。
UPDATE: This is likely specific to renaming the solution file. I had renamed the solution file and after doing this the problem occurred. After following the steps listed in the answer below and committing/syncing with the online repository, opening the solution back up now works normally again.
The tip about 'git status' lead me to a solution. I'm not sure exactly how this worked or what the root cause of the issue was, but these steps put me back on track:
- 导航到团队 - >连接到Team Foundation Server
- 右键单击xxx.visualstudio.com上列出的项目并选择连接
- 单击
- 选择提交按钮旁边的操作,然后选择打开命令提示符。
- 输入'git status'
- 假设您确实在命令窗口中列出了更改 - 在Visual Studio中导航回'Changes'现在应该显示所有Included&排除Visual Studio中的更改
- Navigate to Team -> Connect to Team Foundation Server
- Right-click the project listed on xxx.visualstudio.com and choose 'Connect'
- Click the project name at the top, and choose 'Changes'
- Choose 'Actions' next to the commit button and pick 'Open Command Prompt'
- Type 'git status'
- Assuming you actually have changes listed in the command window - Navigating back to 'Changes' in Visual Studio should now show all the Included & Excluded changes in Visual Studio
如果这实际上解决了我在解决方案时遇到的自动签入问题,好的。
I'll follow-up if this actually solves the automatic check-in issue I was having with the solution as-well.
这篇关于使用Git联机的TFS的Visual Studio 2013:自动保存文件签到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!