# 查看文件版本号 commit id
git log <file path>
# 回退到某个版本(file path 可以是文件/文件夹/或使用通配符)
git checkout <commit id> <file path>
# 查看文件版本号 commit id
git log <file path>
# 回退到某个版本(file path 可以是文件/文件夹/或使用通配符)
git checkout <commit id> <file path>
本文标题:git回退单个文件到指定版本
本文链接:https://www.haomeiwen.com/subject/iwombctx.html
网友评论