美文网首页
【CMD】Git Reset & Git Revert

【CMD】Git Reset & Git Revert

作者: 盐果儿 | 来源:发表于2024-05-22 21:12 被阅读0次

If you forgot to add a file to the commit.

git reset --soft HEAD

Undo a single commit by taking you back to the staged files before the commit.

git revert --no-edit <commit ID>

Reference: https://www.datacamp.com/tutorial/git-reset-revert-tutorial

相关文章

网友评论

      本文标题:【CMD】Git Reset & Git Revert

      本文链接:https://www.haomeiwen.com/subject/fygzfjtx.html