$> git diff --name-only
src/main/resources/application.yml
  • 更新.gitignore
src/main/resources/application-dev.yml
  • 清除缓存
$> git rm --cached src/main/resources/application-dev.yml
$> git diff --name-only