【发布时间】:2014-04-11 12:17:21
【问题描述】:
我想将 NuGet.exe 上传到 github,但我的本地存储库中没有列出所有 exe 文件。
大约两周前,我确实在另一个项目仓库中上传了NuGet.exe 文件,但现在我根本无法上传任何 exe 文件。没有我专门定义的全局.gitignore。
下面的代码是我的.gitignore 文件。
我错过了什么?
# Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
[Bb]in/
[Oo]bj/
# mstest test results
TestResults
## 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/
*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.log
*.vspscc
*.vssscc
.builds
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
# Visual Studio profiler
*.psess
*.vsp
*.vspx
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*
# 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
packages
# Windows Azure Build Output
csx
*.build.csdef
# Windows Store app package directory
AppPackages/
# Others
[Bb]in
[Oo]bj
sql
TestResults
[Tt]est[Rr]esult*
*.Cache
ClientBin
[Ss]tyle[Cc]op.*
~$*
*.dbmdl
Generated_Code #added for RIA/Silverlight projects
# 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
# Windows-specific files
Thumbs.db
desktop.ini
# Mac-specific things (thanks to Michael Aaron Safyan)
.DS_Store
-- 编辑--
.nuget/ 目录下的相同文件 .config 和 .targets 文件处理良好。我可以检查git ls-files --others -i --exclude-standard 给出的NuGet.exe 是否被忽略,但我不知道是哪个规则造成的。
【问题讨论】:
-
检查哪些文件夹保存了exe,这里你有
Bin/bin/等等忽略。 -
@LoïcFaure-Lacroix //
.nuget/文件夹中的相同文件(.config 和 .targets)得到很好的处理。 -
无论如何检查
.git/info/exclude中是否有东西。 -
@LoïcFaure-Lacroix // 感谢您的快速回复。但那里什么都没有(只有评论的话)。嗯....
标签: windows git github atlassian-sourcetree github-for-windows