简体   繁体   中英

How do I clone a github repo to a certain branch in my repo

I'm trying to upload a folder that includes over 100 files. So I'm thinking about getting the repo that already has that folder and cloning it into the branch I want the folder in.

You can't clone a repo into a branch. You clone a repo. Period.

Just like in the real world, if you clone something you get a copy of the original. If you clone a sheep, you get a sheep, not a cow. If you clone a repo, you get a repo, not a branch.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM