How do I download a specific git commit from a repository?

前端 未结 8 2351
北海茫月
北海茫月 2020-12-15 06:10

I don\'t have a local code copy/etc, I just want to download a single specific git commit so I can view it. I have the url for the git repository:

git://git.kernel.o

8条回答
  •  伪装坚强ぢ
    2020-12-15 06:40

    There is a way to do this:

    git show ee9c5cfad29c8a13199962614b9b16f1c4137ac9 > myCommittedCode.txt
    

提交回复
热议问题