相关疑难解决方法(0)

Git - 创建.gitignore文件

我正在寻找创建一个.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 #
############
# …
Run Code Online (Sandbox Code Playgroud)

git gitignore

26
推荐指数
2
解决办法
5万
查看次数

标签 统计

git ×1

gitignore ×1