git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matt Di Pasquale <pasquale@fas.harvard.edu>
To: git@vger.kernel.org
Subject: git for pushing local subdir to website
Date: Mon, 3 Aug 2009 13:11:13 -0400	[thread overview]
Message-ID: <13f0168a0908031011odd98c03ye08a1b0774fca523@mail.gmail.com> (raw)

I made a post here about this here:
http://stackoverflow.com/questions/600079/is-there-any-way-to-clone-a-git-repositorys-sub-directory-only/1223407#1223407

Basically, I'm working alone on a website (well, it's a facebook
app.). What's the best way to sync my local copy with my production?
but i want the production to only be linked with the production subdir
of my local project.

so, I have a local copy i'm working on that I've organized like so.
call the project example. here are the dirs on my local comp. macbook.

example -extra [this holds files i don't want to go to the webserver
mainly for security reasons. files like .psd files or .sql files. or
readme files. etc.] -example.com [this dir holds all the files i want
on my server for production at http://example.com]

i have local git repo here: example/.git

now... how do i just push example.com and not extra and example.com?

do i need to make another git repo in example.com and make example.com
a submodule?

i've also thought about using branches... a local branch and a
production branch. but i only want one copy of the production files.
because i want to be able to check out all the files and zip the dir
and send it to someone to see.

that doesn't really make sense conceptually because example is one big
project. extra is like extra files and example.com is like what i
really want to go on web server...

thanks!

-matt

             reply	other threads:[~2009-08-03 17:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-03 17:11 Matt Di Pasquale [this message]
2009-08-03 18:01 ` git for pushing local subdir to website Wesley J. Landaker
2009-08-03 18:09   ` Matt Di Pasquale
2009-08-03 18:58     ` Wesley J. Landaker
2009-08-03 19:13       ` Matt Di Pasquale
2009-08-03 21:48         ` Wesley J. Landaker

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=13f0168a0908031011odd98c03ye08a1b0774fca523@mail.gmail.com \
    --to=pasquale@fas.harvard.edu \
    --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 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 NNTP newsgroup(s).