Home > Enterprise >  How to download a multi commits from github?
How to download a multi commits from github?

Time:10-13

I need to use git format-patch to download multi a commits depend on from some SHA to other SHA ... Not single diff patch ...

for example I want to download from this source https://github.com/GStreamer/gstreamer/commits/main?after=93b896eb4edc035d9ccc56a680a34e83aa18bb42 34&branch=main&qualified_name=refs/heads/main

I need to download all commits from (pbutils: descriptions: add meta/x-klv) to (ci: Bump meson to 0.62.2 in Fedora docker images) only ?!! This is just example !!

CodePudding user response:

format-patch takes the usual gitrevisions format. Just leave out the -1 (single commit) argument and specify sha1...sha2 range.

CodePudding user response:

found way by this commit

git format-patch bc6a2dd1c8552cd67612dc728e0b7525e90b036e -10

The command will be download patches start with bc6a2dd1c8552cd67612dc728e0b7525e90b036e and them latest 10 commits after that SHA

  • Related