git
重置存储库
重置存储库
# 重置master git checkout --orphan latest git add -A git commit -m "Initial commit: fresh start" git branch -D master git branch -m master git push origin master --force # 清理缓存 git reflog expire --expire=now --all git gc --prune=now --aggressive修复已部署代码
git fetch origin git reset --hard origin/master