1、本地回退

git reset --hard commit_id

2、下载branch code

git clone -b branch_name URL

3、查看已经暂存起来的变化

git diff --cached

4、stash当前修

 git stash

5、重新应用缓存的stash

git stash pop

 

git stash:https://www.cnblogs.com/tocy/p/git-stash-reference.html

posted on 2019-02-20 14:08  Malphite  阅读(138)  评论(0编辑  收藏  举报