赞
踩
方式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文件
增加忽略文件
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。