1

Is it possible to add a single-file resource from one Git repo to another?

Kind of like of like submodules but even more lightweight

git import repo:file:SHA1

Until Internet itself gets builtin content based addressing, I see no reason to not provide such a feature in Git.

Nordlöw
  • 11,838
  • 10
  • 52
  • 99
  • See http://gbayer.com/development/moving-files-from-one-git-repository-to-another-preserving-history/ – Michael Durrant Oct 14 '14 at 10:37
  • Do you want to keep being able to update that single file in another repository? Then you will have to use a submodule—even for a single file (Git repositories are already extremely lightweight, so don’t worry about that). Otherwise, if you just want to have the file in the repository, copy and paste it there. – poke Oct 14 '14 at 10:39

0 Answers0