1

Let's say I copied (not forked) only one file/folder from other git directory and included it as a part into my existing project. I do not intend to change it. Is there any way of merging with upstream changes other than replacing it with a newer copy?

The situation is somewhat similar to "Forking a sub directory of a repository on GitHub and making it part of my own repo" but I already put the file into another git repository.

I am unsure if using sparse checkout would help (How do I clone a subdirectory only of a Git repository?) here, since it is probably not a good idea to have a git repository inside of another git repository(?)

smihael
  • 863
  • 13
  • 29

0 Answers0