From: Norike <norike@gmail.com>
To: git@vger.kernel.org
Subject: How to include references to subfolders
Date: Thu, 7 Sep 2017 09:19:01 +0200 [thread overview]
Message-ID: <d15333d0-d9eb-a106-592b-47635fd1cb66@gmail.com> (raw)
Hello,
I've been searching what's the best way to include a reference to a
subfolder/subdirectory from a (secondary) remote repo into a subfolder
of my (primary) repo.
Here I found some approaches:
https://stackoverflow.com/a/30386041/509369
Where the first 3 options don't seem to support sending changes back to
the mainstream; and the 4rth is replicating the whole repo.
Ideally:
- The reference is stored somewhere in the (primary) repo so when
someone clones it, the referenced folder (from the secondary repo) is
also cloned.
- You can pull changes from the remote repo into the subfolder of your repo.
- You can make changes to the subfolder directly from your (primary)
repo, and push them to the remote repo (of course depending on the
privileges of the remote repo).
- Allow multiple remote subfolders.
Extra: it could be more complex, but what about single remote files?
I'm not sure if this is possible with the current set of git tools, if
it can be added in a future or if it's just a no-sense question.
Thanks in advance!
--
Salut,
Yeray
reply other threads:[~2017-09-07 7:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d15333d0-d9eb-a106-592b-47635fd1cb66@gmail.com \
--to=norike@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).