猿问

git checkout 怎么撤销?

git checkout 怎么撤销


慕慕森
浏览 2761回答 1
1回答

千巷猫影

git checkout . #本地所有修改的。没有的提交的,都返回到原来的状态git stash #把所有没有提交的修改暂存到stash里面。可用git stash pop回复。git reset --hard HASH #返回到某个节点,不保留修改。git reset --soft HASH #返回到某个节点。
随时随地看视频慕课网APP
我要回答