How can I fork a branch instead of a complete repository? I wish to copy only the branch https://github.com/COMSYS/contiki/tree/split-buffer and not the complete repository https://github.com/jenshiller/contiki. How to fork a branch in Git? won't work in my case. I don't want to clone the branch.
In github (and in git's mental framework) you clone and fork repositories.
There's no way to fork a branch; that doesn't make sense. Just fork the project, and work off the branch you're interested in. You don't lose anything by doing so.
"Working off a branch" usually means you
git clone http://repository
), thengit checkout awesome-branchname
), git checkout -b new-even-more-awesome-branch-name
)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With