1

Example: Repo-A has a File-A I would like to include in Repo-B. Whenever Repo-A updates File-A, I would like File-A in Repo-B to reflect those changes.

Reason: I'm using hardlinked files to manage my dotfiles with git, and I love LS_COLORS by trapd00r. I'd like to have all my dotfiles in one git repo, but I always want the latest LS_COLORS.

1 Answers1

0

I believe the simple way would be:

From repo B:

  • soft link to fileA from repo A (symlinks are available even on Windows Vista or Seven)
  • ignore fileA in repo B .gitignore file.

Submodules aren't appropriate here, especially when you consider a submodule always refers to a fixed commit (and they refer to a full Git repo, not to just one file).

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250