Can a git repository inherit or extend files from another repository?
-
In a scenario where a team is working on a project in a repository, and then a completely different project that uses styles and some code from the original project repository is created, how can the repositories be set up such that the changes made to those global files in the original repository are also made accessible in the new repository?
-
Answer:
I think what you are looking for is called git submodules. It links to a specific commit in another git repo instead of tracking all the changes of the other project (in the case where you just include the code in your project). I would say be careful with submodules though because it's easy to get carried away.
Rob King at Quora Visit the source
Related Q & A:
- Should I use a code repository if I am the only one working on a project?Best solution by Programmers
- How do I correctly move a git submodule?Best solution by Stack Overflow
- How can i attach word,excel,mp3,picture files to e-mail messages in yahoo mail quickly?Best solution by Yahoo! Answers
- How can I transfer my music from one iPod to another?Best solution by Yahoo! Answers
- Can I transfer my videos from one account to another?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.