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
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
网友评论