I'm new to github.
I have a github repo on my machine. I want to include another repo (as a third party) into my repo. I believe I should make a fork first. But how do I include it on my local repo?
I've tried submodules but with no success...
Thanks.
You can reference issues between repositories by mentioning user/repository#number in an issue. Once we see something like that — say, github/enterprise#59 — we'll make sure to update issue #59 in github's enterprise repository and let you know where it was referenced from.
Submodules allow you to keep a Git repository as a subdirectory of another Git repository. This lets you clone another repository into your project and keep your commits separate.
git submodule remains the recommended way: you can declare (git submodule add
) a repo which doesn't belong to you, or a fork (which, by definition, belongs to you).
Don't forget though, that:
git submodule update --init
in order to see that submodule repo being displayed with its full content in your repoIf 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