Visual Studio:Git团队资源管理器不显示任何更改 [英] Visual Studio: Git Team Explorer does not show any changes

查看:566
本文介绍了Visual Studio:Git团队资源管理器不显示任何更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我第一次添加一个项目到源代码控制(GIT)时,它会显示所有的文件,一切都会很好。我可以继续工作大约30分钟到1小时,并且所有的变化都会显示出来(任何文件我都会做出修改)。

但是经过一段时间后,它显示出无论我做了多少变化,都不编辑文件。我只是没有得到它...我看着.gitignore文件,我没有看到任何我正在使用的文件类型,所以我没有得到什么。



我正在处理一个多层MVC应用程序,所以很多C#,一堆.cshtml等等。



提示?谷歌没有找到任何东西。这里是.gitignore文件...
我得到了同样的问题,因为这个家伙...他没有回答!



当我保存一个文件的变化,它的状态自动返回到未更改/提交(蓝色锁定)

  ##忽略Visual Studio临时文件,生成结果,以及流行的Visual Studio插件生成的
##文件。

#特定于用户的文件
* .suo
* .user
* .sln.docstates

#生成结果

[Dd] ebug /
[Rr] elease /
x64 /
build /
[Bb] in /
[Oo] bj /

#在NuGet Packages文件夹中启用build /文件夹,因为NuGet软件包将它用于MSBuild目标
!packages / * / build /

#MSTest测试结果
[Tt] est [Rr] esult * /
[Bb] uild [Ll] og。*

* _i.c
* _p.c
* .ilk
* .meta
* .obj
* .pch
* .pdb
* .pgc
* .pgd
* .rsp
* .sbr
* .tlb
* .tli
* .tlh
* .tmp
* .tmp_proj
* .log
* .vspscc
* .vssscc
.builds
* .pidb
* .log
* .scc

#Visual C ++缓存文件
ipch /
* .aps
* .ncb
* .opensdf
* .sdf
* .cachefile

#Visual Studio分析器
* .psess
* .vsp
* .vspx

#制导自动化工具包
* .gpState

#ReSharper是一个.NET编码加载项
_ReSharper * /
*。[Rr] e [Ss ] harper

#TeamCity是一个构建插件
_TeamCity *

#DotCover是一个代码覆盖工具
* .dotCover

#NCrunch
* .ncrunch *
。* crunch * .local.xml

#Installshield输出文件夹
[Ee] xpress /

DocProject是文档生成器加载项
DocProject / buildhelp /
DocProject / Help / *。HxT
DocProject / Help / *。HxC
DocProject / Help / *。hhc
DocProject / Help / *。hhk
DocProject / Help / *。hhp
DocProject / Help / Html2
DocProject / Help / html

#一次性目录
发布/

#发布Web输出
* .Publish.xml

#NuGet包目录
## TODO:如果您启用了NuGet Package Restore,请取消注释下一行
#packages /

#Windows Azure Build输出
csx
* .build。 csdef

#Windows Store应用程序包目录
AppPackages /

#其他
vsql /
* .Cache
ClientBin /
[Ss] tyle [Cc] op。*
〜$ *
*〜
* .dbmd l
*。[Pp] ublish.xml
* .pfx
* .publishsettings

#RIA / Silverlight项目
Generated_Code /

#备份&报告将旧的项目文件转换为新的
#Visual Studio版本的文件。不需要备份文件,因为我们有git ;-)
_UpgradeReport_Files /
备份* /
UpgradeLog * .XML
UpgradeLog * .htm

#SQL Server文件
App_Data / *。mdf
App_Data / *。ldf

$ b #LightSwitch生成文件
GeneratedArtifacts /
_Pvt_Extensions /
ModelManifest.xml

#=========================
#Windows碎片
#=========================

#Windows映像文件缓存
Thumbs.db
ehthumbs.db

#文件夹配置文件
Desktop.ini

#用于文件共享的回收站
$ RECYCLE.BIN /

#Mac桌面服务存储文件
.DS_Store


解决方案

重新启动我的机器为我修复了它。重新启动Visual Studio是不够的,但在重新启动整个系统后,更改现在显示在团队资源管理器中。


When I first add a project to source control(GIT) it will show all of the files and everything will be peachy. I can continue to work for about 30mins-1hr and all of the changes show up(any file I make changes).

But after some period of time, it shows that no file is edited no matter how many changes I make. I just dont get it...I looked at the .gitignore file and I dont see any of the file types I'm working with so I don't get what the heck is going on.

I am working with a multi-tier MVC application so lots of C#, bunch of .cshtml and so on.

Tips? Google doesnt find anything. Here is the .gitignore file... I got the same issue as this dude...and he got no answer!

When I save a file with changes, its status automatically goes back to unchanged/committed (blue lock)

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results

[Dd]ebug/
[Rr]elease/
x64/
build/
[Bb]in/
[Oo]bj/

# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
!packages/*/build/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.log
*.scc

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
*.ncrunch*
.*crunch*.local.xml

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.Publish.xml

# NuGet Packages Directory
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
#packages/

# Windows Azure Build Output
csx
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
vsql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.[Pp]ublish.xml
*.pfx
*.publishsettings

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
App_Data/*.mdf
App_Data/*.ldf


#LightSwitch generated files
GeneratedArtifacts/
_Pvt_Extensions/
ModelManifest.xml

# =========================
# Windows detritus
# =========================

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Mac desktop service store files
.DS_Store

解决方案

Rebooting my machine fixed it for me. Rebooting Visual Studio wasn't enough, but after rebooting the entire system the changes are now shown in Team Explorer.

这篇关于Visual Studio:Git团队资源管理器不显示任何更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆