返回 Skill 列表
extension
分类: 开发与工程无需 API Key

git-undo

撤销最后一次提交,但保留已暂存的更改。当需要修复提交信息或添加遗漏的文件时使用。

person作者: jakexiaohubgithub

Git Undo

Undo the last commit but keep changes staged.

  1. Undo the last commit but keep the file changes in the staging area.
    • Command: git reset --soft HEAD~1
    • This allows you to fix the commit message or add missing files before committing again.