1. 进入当前的项目根目录

执行

git init
touch .gitignore

2. 过滤class文件或指定目录

*.class

/target/

Git .gitignore使用 -- 过滤class文件或指定目录


3. 提交

git add .

将所有文件提交到git,会过滤class和target文件夹


3. 提交

git commit -m "commits"





相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
  • 2022-12-23
  • 2021-07-12
  • 2022-01-19
猜你喜欢
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
  • 2021-07-30
  • 2021-09-28
相关资源
相似解决方案