Spe*_*ets 19 c# git visual-studio
当我第一次将项目添加到源代码控制(GIT)时,它将显示所有文件,一切都将是桃子.我可以继续工作大约30分钟-1小时,所有的更改都会显示出来(我做的任何文件都会更改).
但经过一段时间后,它表明无论我做了多少更改,都不会编辑任何文件.我只是不明白......我看了.gitignore文件,我没有看到我正在使用的任何文件类型,所以我不知道到底发生了什么.
我正在使用多层MVC应用程序,因此有很多C#,一堆.cshtml等等.
提示?谷歌找不到任何东西.这是.gitignore文件......我和这个家伙有同样的问题......他没有回答!
当我保存带有更改的文件时,其状态会自动返回到未更改/已提交(蓝色锁定)
## 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
Run Code Online (Sandbox Code Playgroud)
Chr*_*ton 17
我发现VS打开了一个.opendb文件,在搜索更改时导致权限冲突.它在"Source Control - Git"下的"输出"窗口中报告了导致问题的精确文件.将此添加到我的.gitignore修复了该问题.如果VS重新启动或重新启动修复了问题,那么您可能正在关闭有问题的文件句柄 - 在我的情况下,VS每次都打开问题文件.
另请参见Visual Studio TFS Git没有看到任何更多潜在原因的更改.
重新启动我的机器为我修复了它.重新启动Visual Studio是不够的,但在重新启动整个系统后,现在会在团队资源管理器中显示更改.
不幸的是,以上都不适合我,但过了一段时间,这是我的解决方案:
.git为您的存储库找到您的文件夹。'index.lock'里面的文件。我正在使用 Visual Studio 2017,但我希望这对某人有所帮助!
我的Visual Studio"源代码控制 - Git"日志一直在抱怨我的SQL项目中的锁定文件.一个.jfm文件.将它添加到.gitignore然后工作.
因此,无论您更改什么,当您的解决方案显示无变化时,请检查您的Git日志.
| 归档时间: |
|
| 查看次数: |
16552 次 |
| 最近记录: |