git 回退版本并强制覆盖远程仓库

1. git log

找到要回退的hash编号

2.git reset --hard 编号

3.git push origin branch-name --force // 强制覆盖、慎用

posted @ 2025-09-02 10:35  玛卡巴鉲  阅读(27)  评论(0)    收藏  举报