chore: 添加.gitignore文件以忽略不必要的文件和目录

添加.gitignore文件以忽略IDE配置文件、构建输出、环境变量文件等,避免将这些文件提交到版本控制中,保持仓库的整洁。
This commit is contained in:
dong 2025-05-13 17:14:39 +08:00
parent b4e777b707
commit ecd21ce10c

91
.gitignore vendored Normal file
View File

@ -0,0 +1,91 @@
/.github
/.idea
/.vs
/.vscode
/Login/.idea
/Login/.vs
/KeyAuth-Service/.idea
/Admin-Keyauth/.vs
/Admin-Keyauth/.idea
#环境变量
.env
#构建删除
/Server/Run/*.exe
/KeyAuth-Service/Run/*.exe
# 忽略所有obj
**/obj/**
# 已构建程序不上传
*.exe
/Server/Run/*.exe
/KeyAuth-Service/Run/*.exe
# IDEA
Server/.idea
[Tt]humbs.db
*.DS_Store
#Visual Studio files
*.[Oo]bj
*.user
*.aps
*.pch
*.vspscc
*.vssscc
*_i.c
*_p.c
*.ncb
*.suo
*.tlb
*.tlh
*.bak
*.[Cc]ache
*.ilk
*.log
*.lib
*.sbr
*.sdf
*.opensdf
*.unsuccessfulbuild
ipch/
obj/
[Bb]in
[Dd]ebug*/
[Rr]elease*/
Ankh.NoLoad
#MonoDevelop
*.pidb
*.userprefs
#Tooling
_ReSharper*/
*.resharper
[Tt]est[Rr]esult*
*.sass-cache
#Project files
[Bb]uild/
#Subversion files
.svn
# Office Temp Files
~$*
#NuGet
packages/
#ncrunch
*ncrunch*
*crunch*.local.xml
# visual studio database projects
*.dbmdl
#Test files
*.testsettings