1-git reset --hard "git commit log"
回退到之前一个稳定的提交
2-git stash
清空staged或unstaged内容
3-git pull
pull最新的内容
本文介绍了Git中三个常用的命令:使用'git reset --hard'回退到之前的稳定提交,利用'git stash'清空暂存区或未暂存的内容,以及通过'git pull'拉取最新的代码更新。
1-git reset --hard "git commit log"
回退到之前一个稳定的提交
2-git stash
清空staged或unstaged内容
3-git pull
pull最新的内容
317
2376
3546

被折叠的 条评论
为什么被折叠?