git回退单个文件到指定版本

2019-11-07  本文已影响0人  mingli2015
# 查看文件版本号 commit id
git log <file path>

# 回退到某个版本(file path 可以是文件/文件夹/或使用通配符)
git checkout <commit id> <file path>

上一篇下一篇

猜你喜欢

热点阅读