当前位置:   article > 正文

idea git 提交 忽略文件或者文件夹_idea 设置git忽略文件夹及文件

idea 设置git忽略文件夹及文件

方式1. 右键文件或者文件夹 git -> Add to .gitignore   即可忽略

你会发现在.git/info/exclude 文件中 出现刚刚添加的忽略文件

# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
/data/log/

 

方式2

1.安装.gitignore插件,点击File->Settings

 2.在左侧菜单找到(1)点击Plugins,(2)点击Browse repositories 3.安装插件

3.重启idea

  之后在项目中会出现.gitignore文件

增加忽略文件 

 

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/429813
推荐阅读
相关标签
  

闽ICP备14008679号