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

前端 未结 8 2366
北海茫月
北海茫月 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:34

    I ran in to this problem today, and have found a way to download archives for a specific commit. If you go to a repository on git.kernel.org there is a clone section on the bottom. The bottom url is a google git mirror. You will be able do download archives for specific commits from here.

提交回复
热议问题