0

I have to build a patched kernel based on the 4.1.2 mainline kernel. I know that I need the commit $commit_num. Unfortunately, my network connection is slow, so downloading the whole repo with history would take ages.

Is it possible to download only this one commit? I don't have the repo cloned.

1

2 Answers 2

1

According to the answer here, the only thing you can try is

git archive -o kernel.tar --remote=git://${YOUR_GIT_REPO_URL} ${YOUR_GIT_HASH}

Sign up to request clarification or add additional context in comments.

Comments

0

If the host allows it, you can use git archive to get a zipped up tree of files:

git archive --format=zip --remote=git://git.foo.com/project.git <commit-or-tag>

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.