How to retrieve a single file from a specific revision in Git?

后端 未结 10 1261
臣服心动
臣服心动 2020-11-22 15:50

I have a Git repository and I\'d like to see how some files looked a few months ago. I found the revision at that date; it\'s 27cf8e84bb88e24ae4b4b3df2b77aab91a3735d8<

10条回答
  •  囚心锁ツ
    2020-11-22 16:15

    git checkout {SHA1} -- filename
    

    this command get the copied file from specific commit.

提交回复
热议问题