首页 > 其他分享 >.gitignore模板

.gitignore模板

时间:2024-11-19 09:14:54浏览次数:3  
标签:map log min lock 忽略 swp 模板 gitignore

当然,这里提供一个更详细的 .gitignore 模板,这个模板涵盖了多种编程语言和开发工具,你可以根据需要进行调整:

# 忽略编译生成的文件
*.o
*.obj
*.exe
*.dll
*.class
*.jar
*.pyc
__pycache__/
*.pyo
*.pyd
*.node
*.coffee
*.rbc
*.o
*.gch
*.gem
*.lock
*.log
*.db
*.db3
*.sqlite
*.sqlite3
*.sql
*.sqliteo
*.mdb
*.suo
*.nupkg
*.symbols
*.pch
*.vspscc
*.vssscc
*.swp
*~.nib
*.plist
*.a
*.lib
*.so
*.dylib
*.ncb
*.sdf
*.suo
*.pdb
*.idb
*.ilk
*.aps
*.pch
*.vspscc
*.vssscc
*.build
*.pidb
*.sln.docstates
*.user
*.userprefs
*.scc
*.cache
*.log
*.DS_Store
*.bak
*.bak2
*.swp
*.bak0
*.lock
*.tmp
*.temp
*.old
*.orig
*.rej
*.orignal
*.in
*.tmp
*.log
*.zip
*.tar
*.gz
*.rar
*.7z
*.bz2
*.xz
*.exe
*.com
*.scr
*.msi
*.msix
*.msm
*.msp
*.cer
*.pem
*.crt
*.csr
*.key
*.pfx
*.p12
*.p7b
*.p7s
*.bat
*.cmd
*.sh
*.scr
*.sh~
*.py
*.py~
*.pyc
*.pyo
*.pyd
*.pyw
*.py[cod]
*.pdb
*.sln.docstates
*.user
*.userprefs
*.scc
*.cache
*.log
*.ilk
*.aps
*.pch
*.ncb
*.sdf
*.suo
*.nupkg
*.nuspec
*.snk
*.exe
*.dll
*.pdb
*.config
*.csproj
*.sln
*.swp
*.tmp
*.log
*.zip
*.rar
*.gz
*.tar.gz
*.tar.bz2
*.7z
*.bz2
*.xz
*.swp
*~.nib
*.plist
*.dylib
*.ncb
*.sdf
*.suo
*.pdb
*.idb
*.ilk
*.aps
*.pch
*.vspscc
*.vssscc
*.build
*.pidb
*.log
*.vspscc
*.vssscc
*.user
*.userprefs
*.sln.docstates
*.scc
*.cache
*.ilk
*.aps
*.pch
*.ncb
*.sdf
*.suo
*.nupkg
*.nuspec
*.snk
*.exe
*.dll
*.pdb
*.config
*.csproj
*.sln
*.swp
*.tmp
*.log
*.zip
*.rar
*.gz
*.tar.gz
*.tar.bz2
*.7z
*.bz2
*.xz

# 忽略 IDE 配置文件
.idea/
*.iml
*.iws
*.icproj
*.xccheckout
*.xcuserdata
*.xcuserdatadir
*.xcsettings
*.xcworkspace
*.xcworkspacedata
*.xcuserstate
*.xccheckout
*.xcscmblueprint
*.gitignore
*.gitattributes
*.gitmodules
*.git
*.hg
*.svn
*.DS_Store

# 忽略 Node.js 项目文件
node_modules/
npm-debug.log
yarn-debug.log
yarn-error.log
yarn.lock
package-lock.json

# 忽略 Java 项目文件
*.class
target/
out/
bin/
build/
.project
.classpath
.settings/
*.iml
*.ipr
*.iws

# 忽略 Python 项目文件
__pycache__/
*.py[cod]
*.pyd
*.pyo
*.pyc
*.pyd
*.pyo
*.dist-info
*.egg-info
*.egg
*.spec
*.dist-info
*.egg-info
*.egg
*.spec

# 忽略 Ruby 项目文件
*.gem
*.gemspec
Gemfile.lock
Rakefile
.ruby-version
.ruby-gemset
.rubyenv
.bundle/
.bundle/config
.bundle/environment.rb
.bundle/bundler/version
.bundle/settings.json
.bundle/cache
.bundle/tmp
vendor/bundle/
vendor/cache/
vendor/cookbooks/
tmp/
*.log
*.pid
*.puma.state
*.pid
*.state
*.swp
*.swo
*.swn
*.swm
*.swx

# 忽略 JavaScript 项目文件
*.log
npm-debug.log
yarn-debug.log
yarn-error.log
yarn.lock
package-lock.json
node_modules/
*.map
*.min.js
*.min.css
*.min.js.map
*.min.css.map

# 忽略 PHP 项目文件
*.log
*.pid
*.state
*.swp
*.swo
*.swn
*.swm
*.swx
vendor/
composer.lock

# 忽略前端构建文件
dist/
build/
*.log
*.pid
*.state
*.swp
*.swo
*.swn
*.swm
*.swx
node_modules/
*.map
*.min.js
*.min.css
*.min.js.map
*.min.css.map

# 忽略数据库文件
*.db
*.sqlite
*.sqlite3
*.sql
*.db3

# 忽略文档和报告文件
doc/
docs/
*.doc
*.docx
*.pdf
*.txt
*.log
*.aux
*.bbl
*.blg
*.log
*.out
*.toc
*.lof
*.lot
*.bak
*.snm
*.nav
*.vrb
*.fls
*fdb_latexmk
*.acn
*.glo
*.ist
*.xdy
*.1
*.2
*.3
*.4
*.5
*.6
*.7
*.8
*.9
*.log
*.ilg
*.toc
*.synctex
*.synctex.gz
*.bbl
*.blg
*.ind
*.lof
*.lot
*.idx
*.nlo
*.aux
*.auxlock
*.out
*.toc
*.fls
*.log
*.fdb_latexmk
*.acn
*.glo
*.ist
*.xdy
*.synctex
*.synctex.gz
*.bbl
*.blg
*.ind
*.lof
*.lot
*.idx
*.nlo
*.bak
*.snm
*.nav
*.vrb

# 忽略测试和构建目录
build/
dist/
out/
*.log
*.pid
*.state
*.swp
*.swo
*.swn
*.swm
*.swx
node_modules/
*.map
*.min.js
*.min.css
*.min.js.map
*.min.css.map

# 忽略其他文件
*~
.*.swp
.*.swo
.*.swn
.*.swm
.*.swx
.*~
Thumbs.db
.DS_Store

这个模板包含了许多常见的文件和文件夹,它们通常不需要被版本控制。您可以根据自己的项目需求,添加或删除某些规则。例如,如果您使用的是 Python,您可能需要添加 *.pyc 到忽略列表中;如果您使用的是 Ruby,您可能需要添加 *.rbc.ruby-version

标签:map,log,min,lock,忽略,swp,模板,gitignore
From: https://blog.csdn.net/weixin_73060959/article/details/143858076

相关文章

  • PbootCMS 模板利用宝塔面板计划任务执行自动推送网址到百度
    新建PHP文件:在站点根目录新建一个PHP文件,例如 baidu.php,并复制以下代码:<?phpheader('Content-Type:text/html;charset=utf-8');/**只需修改这里面的两个链接**/$xml_url="https://你的站点/sitemap.xml";//这里修改你站点的XML地图链接$baidu_api='http......
  • 实验4 类的组合、继承、模板类、标准库
    实验任务1:实验代码:1#include<iostream>23usingstd::cout;4usingstd::endl;56//类A的定义7classA{8public:9A(intx0,inty0);10voiddisplay()const;1112private:13intx,y;14};1516A::A(intx0,inty0):x{x0......
  • IDEA自定义注释模板
    1.修改类头的文档注释信息效果:  步骤:Editor–FileandCodeTemplates/**@Author:野马哥@Description:@DateCreatedin${YEAR}-${MONTH}-${DAY}${TIME}@ModifiedBy:*/直接在右边的文件框里编辑你说需要注释的东西,然后应用保存之后,当你创建类的时候......
  • 实验4 类的组合、继承、模板类、标准库
    任务2源码:1#include<iostream>2#include<vector>3#include<string>4#include<algorithm>5#include<numeric>6#include<iomanip>78usingstd::vector;9usingstd::string;10usingstd::cin;......
  • 常用代码模板4——数学知识
    算法基础课相关代码模板 试除法判定质数——模板题luogu866.试除法判定质数boolis_prime(intx){if(x<2)returnfalse;for(inti=2;i<=x/i;i++)if(x%i==0)returnfalse;returntrue;}试除法分解质因数......
  • 常用代码模板1——基础算法
    算法基础课相关代码模板活动链接——算法基础课快速排序算法模板——模板题luogu785.快速排序voidquick_sort(intq[],intl,intr){if(l>=r)return;inti=l-1,j=r+1,x=q[l+r>>1];while(i<j){doi++;wh......
  • 常用代码模板2——数据结构
    单链表——模板题luogu826.单链表//head存储链表头,e[]存储节点的值,ne[]存储节点的next指针,idx表示当前用到了哪个节点inthead,e[N],ne[N],idx;//初始化voidinit(){  head=-1;  idx=0;}//在链表头插入一个数avoidinsert(inta){  e[idx]=a,ne[i......
  • 常用代码模板3——搜索与图论
    算法基础课相关代码模板 树与图的存储树是一种特殊的图,与图的存储方式相同。对于无向图中的边ab,存储两条有向边a->b,b->a。因此我们可以只考虑有向图的存储。(1)邻接矩阵:g[a][b]存储边a->b(2)邻接表://对于每个点k,开一个单链表,存储k所有可以走到的点。h[k]存储这个单链......
  • 修改IDEA中Servlet创建的模板
    一、原Servlet模板创建出来的格式样式二、按图步骤修改注释参数1.点击File->选择Settings,按下图步骤进入设置项。修改前的模板样式2.修改类创建时的默认方法三、重新创建Servlet时,新模板样式......
  • Python.gitignore
    #Byte-compiled/optimized/DLLfiles__pycache__/"""Python文件编译后的缓存目录。git上传时会忽略该目录下的文件"""*.py[cod]"""Python文件编译后的字节码文件(如.pyc、.pyo、.pyd)。"""*$py.class """Pyth......