git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git for pushing local subdir to website
@ 2009-08-03 17:11 Matt Di Pasquale
  2009-08-03 18:01 ` Wesley J. Landaker
  0 siblings, 1 reply; 6+ messages in thread
From: Matt Di Pasquale @ 2009-08-03 17:11 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-08-03 21:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-03 17:11 git for pushing local subdir to website Matt Di Pasquale
2009-08-03 18:01 ` 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

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).