git 如何还原某个文件

单个文件代码回退
1、到对应的文件目录
2、git log xx.js
3、git reset xxxxxx xx.js
4、git checkout xx.js

四步走

评论

暂无评论