------删除文件及提交记录
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch ./application-prod.yml' --prune-empty --tag-name-filter cat -- --all
---强推覆盖所有分支
git push origin --force --all
---强推覆盖master分支
git push origin master --force
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch ./src/main/resources/application-dev.yml' --prune-empty --tag-name-filter cat -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch ./src/main/resources/application-qa.yml' --prune-empty --tag-name-filter cat -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch ./src/main/resources/application-prod.yml' --prune-empty --tag-name-filter cat -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch ./README.md' --prune-empty --tag-name-filter cat -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch ./readme.md' --prune-empty --tag-name-filter cat -- --all
浙公网安备 33010602011771号