Git Cheatsheet
Last updated
Was this helpful?
Was this helpful?
pick 64d26a1 feat: add index.js
s 45f0259 fix: update index.js
s 8b15b0a fix: typo in index.jsgit add .
git commit --fixup HEAD~1
# 或者也可以用提交的哈希值(fed14a4c)替换 HEAD~1
git rebase -i HEAD~3 --autosquash
# 保存并退出文件(VI 中输入 `:wq`)