git 怎么回滚本地的更新

2025-05-19 05:08:54
推荐回答(1个)
回答(1):

如果是已经做了提交, 使用git checkout检出你要的commit就行了
如果没提交, 想放弃所有的本地修改 使用
git stash 然后 git stash drop