Copy a set of files/trees from one repo to another repo via GitHub API? #24891
Answered
by
lee-dohm
chenleshang
asked this question in
API and Webhooks
-
Hi! Is there any way to copy a set of files/trees from one repo to another repo via GitHub API? Not by reading the content of the file from one repo and reupload to another repo, but some other ways e.g. through the tree SHA / blob SHA in the original repo? |
Beta Was this translation helpful? Give feedback.
Answered by
lee-dohm
Nov 19, 2018
Replies: 1 comment
-
In theory, yes. In practice, you probably don’t want to shave that particular yak. Since there isn’t a magical “take this from here and put it there” API, you would still have to:
Or, you could have Git do it because it knows how to manipulate its own database. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In theory, yes. In practice, you probably don’t want to shave that particular yak. Since there isn’t a magical “take this from here and put it there” API, you would still have to:
Or, you could have Git do it because it knows how to manipulate its own database.