技术小黑屋

Revert a Certain File Back to a Certain Commit

1
2
3
4
#Grammar
git checkout <commit> <filename>
#Examples
git checkout 19ea3021303c89449506e99e25de3a061dc5aa75 AndroidManifest.xml

Others

我的博客即将搬运同步至腾讯云+社区,邀请大家一同入驻:https://cloud.tencent.com/developer/support-plan?invite_code=2t07a740wrok0


我的知乎 Live 推荐