git 使用方法

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

原文地址:https://www.cnblogs.com/Malphite/p/10406257.html