Hawthorn
Home
Archives
Friends
Git Workflow 随笔
2025-12-15 10:35:44
撤销一个已提交的 commit
回退 commit
1
git reset --soft HEAD^
如果已经 push 则需要 force
1
git push -f
Prev
2025-12-15 10:35:44
Contents
撤销一个已提交的 commit