1、在Git工作区的根目录下创建一个特殊的.gitignore文件,然后把要忽略的文件名填进去,Git就会自动忽略这些文件。

  不需要从头写.gitignore文件,GitHub已经为我们准备了各种配置文件,只需要组合一下就可以使用了。

  所有配置文件可以直接在线浏览:https://github.com/github/gitignore

2、编辑内容  

# Compiled class file
*.class

# Log file
*.log
/.settings/
.classpath
.project
/target/
.setting

相关文章:

  • 2021-09-11
  • 2021-07-24
  • 2021-09-28
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-18
  • 2021-06-25
  • 2022-02-07
  • 2021-08-17
  • 2021-12-17
相关资源
相似解决方案