From: Grant Erickson <gerickson@nuovations.com>
To: <git@vger.kernel.org>
Subject: GIT and Cloning Remote Repositories into "Local Remote" Repositories
Date: Mon, 20 Sep 2010 18:22:09 -0700 [thread overview]
Message-ID: <C8BD56D1.1E331%gerickson@nuovations.com> (raw)
I'm still in the stage of using GIT where I "know enough to be dangerous".
That said, I am trying to set something up and get it "right" to avoid pain
later. However, after reading GIT online help and various FAQs, it is still
unclear what the right thing or steps to perform are.
Here's the scenario:
1) I have a private repository set-up at GitHub that I can commit, push and
pull to my heart's content. This is all working well.
2) I now need to import some third-party software, two packages in
particular (U-Boot and Linux), at specific tags into subdirectories within
my repository in (1).
3) Changes in these subdirectories in (2) should ONLY go to GitHub but NEVER
to the origin of the clone UNLESS the user (usually me) really knows what
he/she is doing.
I know how to use 'git clone' to clone a remote repository and make local
commits there; however, what I think I want is a 'clone into':
% cd <path to the local copy of my GitHub repo>
% git clone <URL to package A @ tag S> <package A subdirectory>
% git commit -m "Imported package A @ tag S" <package A subdirectory>
% git clone <URL to package B @ tag T> <package B subdirectory>
% git commit -m "Imported package B @ tag T" <package B subdirectory>
% git push
Some time later, when Package A or Package B is updated to a new release
tag, I'd like to be able to choose (but not automatically) to merge those
changes in with my own changes and then update my GitHub repository.
Perhaps 'submodules' are what I am looking for?
Anyone have a good recipe or good hygiene/best practice recommendations for
this?
Best,
Grant Erickson
next reply other threads:[~2010-09-21 1:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-21 1:22 Grant Erickson [this message]
2010-09-21 1:37 ` GIT and Cloning Remote Repositories into "Local Remote" Repositories Casey Dahlin
2010-09-27 1:17 ` Grant Erickson
2010-09-27 15:18 ` Casey Dahlin
2010-09-27 15:29 ` Grant Erickson
2010-09-21 4:26 ` Tay Ray Chuan
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C8BD56D1.1E331%gerickson@nuovations.com \
--to=gerickson@nuovations.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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.