我正在寻找创建一个.gitignore文件,以便某些文件不会被检入存储库.有没有人有关于如何以及在何处放置此文件的指南?我已经尝试将它放在我的工作目录中,运行git status并且它仍在接收我希望它忽略的文件.
我用过这个.gitignore文件我找到了:
###################
# compiled source #
###################
*.com
*.class
*.dll
*.exe
*.pdb
*.dll.config
*.cache
*.suo
# Include dlls if they’re in the NuGet packages directory
!/packages/*/lib/*.dll
# Include dlls if they're in the CommonReferences directory
!*CommonReferences/*.dll
####################
# VS Upgrade stuff #
####################
UpgradeLog.XML
_UpgradeReport_Files/
###############
# Directories #
###############
bin/
obj/
TestResults/
###################
# Web publish log #
###################
*.Publish.xml
#############
# Resharper #
#############
/_ReSharper.*
*.ReSharper.*
############
# Packages #
############
# …