$ git rm --cached ./target/*
rm 'spring5/spring01-quickstart/target/classes/com/sz/App.class'
rm 'spring5/spring01-quickstart/target/test-classes/com/sz/AppTest.class'
$ git commit -m "rm target"
[master eb5a978] rm target
2 files changed, 0 insertions(+), 0 deletions(-)
delete mode 100644 spring5/spring01-quickstart/target/classes/com/sz/App.class
delete mode 100644 spring5/spring01-quickstart/target/test-classes/com/sz/AppTest.class
git push
转载于:https://www.cnblogs.com/qiudaozhang/p/9497850.html