-
-
Save NewFuture/bccff8ecc452ec90d9e1491352c7c0d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#删除文件和历史记录 | |
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch {path-of-remove-file}' --prune-empty --tag-name-filter cat -- --all | |
#删除远程分支 | |
git push origin --delete {branchname} | |
git push origin --delete tag {tag name} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment