how to apply an older patch in local GIT repository?

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

Was this solution helpful to you?

Just Added Q & A:

Find solution

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.