On Oct 25, 11:24 pm, kj <kyn...@gmail.com> wrote:
> There are some files that I want to keep under local git control, but
> push to any remote repositories.
> What's the best way to implement this idea with git?
> The best solution I can think of is to put these files in some
> git-controlled directory that is not below the "main" working
> directory, and
> have an (ignored) symlink to it in this working directory.
> Is there a better way?
I'm not sure but submodules look like another possible candidate: you
have a separate repo for your files which is linked to your main one,
and you ever push only your main repo. See .
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to
For more options, visit this group at