GitHub: Bring a file into a separate repo

100 Views Asked by At

I need a specific file from an online repo brought into the local clone of my current project. I'd also like the file in a specific directory in the current project. I don't want to go the easiest route (copy the file from the clone); I'd rather have the file be updatable from the online repo and have that file pushed to my current project's online repo.

Thanks, DZ

2

There are 2 best solutions below

0
On BEST ANSWER

you might be able to use submodules:

http://speirs.org/blog/2009/5/11/understanding-git-submodules.html

they heard you like git, so they put git inside your git, so you can git while you git.

0
On

I think you're looking for something like git-submodule