📌  相关文章
📜  git revert 上次提交中的更改 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:25.951000             🧑  作者: Mango

代码示例1
# by "undo changes" I mean undo commit
# undo changes in last commit, and keep them staged
git reset --soft HEAD~1

# undo changes in last commit, and keep them unstaged
git reset --hard HEAD~1