Re: I don't want the .git directory next to my code.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Mike <fromlists@...>
Cc: Linus Torvalds <torvalds@...>, <git@...>
Date: Thursday, January 17, 2008 - 5:05 pm

On Jan 17, 2008 6:42 PM, Mike <fromlists@talkingspider.com> wrote:

Plenty here use git for web apps.


*First* - people here have pointed out various ways of doing this with
the GIT_DIR env variable. Nothing is being violated.

In terms of the best-practice you mention of publishing only the
reachable files, your checkout is one directory higher. The top-level
dir of your checkout should look like:

  .git
  htdocs # this is published
  conf # configuration files
  lib # libraries

if you publish the top of your checkout, your libraries sit in there.
Along your .git and your config files.


Well -- I routinely add .git CVS and .svn to http.conf with a
directorymatch clause to prevent access to them. Just in case,
belts-and-suspenders.


Nah! It'll be because of a long list of things, including temp files,
backup files that developers make, all sorts of things in your *work*
dir that you really need there and you really should _not_ have in the
production checkout.

BTW, I also add common patterns for those temp files to httpd.conf to
restrict access to them.


C produces a ton of intermediary files that git never commits, and C
projects usually get an "installer" too (debian's apt/dpkg, rpm, etc).
Writing PHP/Ruby/Python produces less "intermediary" files, but it
still creates some, so there's plenty of good reasons to have an
"installer".

GIT does the SCM thing, but for handling your deployment you need
something else. I normally use scripts that use git internally,
written in make, perl or shell.

cheers,



martin
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: I don't want the .git directory next to my code., Jakub Narebski, (Wed Jan 16, 9:13 am)
Re: I don't want the .git directory next to my code., Brian Downing, (Wed Jan 16, 8:59 pm)
Re: I don't want the .git directory next to my code., Randal L. Schwartz, (Wed Jan 16, 9:35 pm)
Re: I don't want the .git directory next to my code., Martin Langhoff, (Wed Jan 16, 10:59 pm)
Re: I don't want the .git directory next to my code., Randal L. Schwartz, (Thu Jan 17, 1:44 am)
Re: I don't want the .git directory next to my code., Matthieu Moy, (Wed Jan 16, 5:59 am)
Re: I don't want the .git directory next to my code., Johannes Schindelin, (Wed Jan 16, 6:36 am)
Re: I don't want the .git directory next to my code., Matthieu Moy, (Wed Jan 16, 7:59 am)
Re: I don't want the .git directory next to my code., Johannes Schindelin, (Wed Jan 16, 8:12 am)
Re: I don't want the .git directory next to my code., Matthieu Moy, (Wed Jan 16, 8:25 am)
Re: I don't want the .git directory next to my code., Johannes Schindelin, (Wed Jan 16, 8:45 am)
Re: I don't want the .git directory next to my code., Junio C Hamano, (Wed Jan 16, 1:40 pm)
Re: I don't want the .git directory next to my code., Johannes Schindelin, (Wed Jan 16, 1:52 pm)
Re: I don't want the .git directory next to my code., Nguyen Thai Ngoc Duy, (Wed Jan 16, 12:03 am)
Re: I don't want the .git directory next to my code., David Symonds, (Wed Jan 16, 12:06 am)
Re: I don't want the .git directory next to my code., Sam Vilain, (Wed Jan 16, 9:42 pm)
Re: I don't want the .git directory next to my code., Daniel Barkalow, (Wed Jan 16, 12:44 am)
Re: I don't want the .git directory next to my code., Daniel Barkalow, (Wed Jan 16, 12:13 am)
Re: I don't want the .git directory next to my code., Wayne Davison, (Wed Jan 16, 6:33 pm)
Re: I don't want the .git directory next to my code., Bert Wesarg, (Wed Jan 16, 9:21 am)
Re: I don't want the .git directory next to my code., Johannes Schindelin, (Wed Jan 16, 6:37 am)
Re: I don't want the .git directory next to my code., Randal L. Schwartz, (Tue Jan 15, 11:50 pm)
Re: I don't want the .git directory next to my code., Neil Macneale, (Wed Jan 16, 1:27 am)
Re: I don't want the .git directory next to my code., Linus Torvalds, (Wed Jan 16, 2:15 pm)
Re: I don't want the .git directory next to my code., Linus Torvalds, (Wed Jan 16, 10:38 pm)
Re: I don't want the .git directory next to my code., Junio C Hamano, (Wed Jan 16, 3:23 pm)
Re: I don't want the .git directory next to my code., Linus Torvalds, (Wed Jan 16, 2:25 pm)
Re: I don't want the .git directory next to my code., Andreas Ericsson, (Fri Jan 18, 4:41 am)
Re: I don't want the .git directory next to my code., Martin Langhoff, (Thu Jan 17, 5:05 pm)
Re: I don't want the .git directory next to my code., Jeff King, (Thu Jan 17, 11:17 am)
Re: I don't want the .git directory next to my code., David Symonds, (Fri Jan 18, 3:52 am)
Re: I don't want the .git directory next to my code., Johannes Schindelin, (Thu Jan 17, 3:20 pm)
Re: I don't want the .git directory next to my code., Johannes Schindelin, (Thu Jan 17, 4:08 pm)
Re: I don't want the .git directory next to my code., Johannes Schindelin, (Thu Jan 17, 4:57 pm)
Re: I don't want the .git directory next to my code., Johannes Schindelin, (Thu Jan 17, 5:05 pm)
Re: I don't want the .git directory next to my code., Linus Torvalds, (Thu Jan 17, 1:36 pm)
Re: I don't want the .git directory next to my code., Johannes Schindelin, (Thu Jan 17, 1:49 pm)
Re: I don't want the .git directory next to my code., Linus Torvalds, (Thu Jan 17, 2:02 pm)
Re: I don't want the .git directory next to my code., Johannes Schindelin, (Thu Jan 17, 2:10 pm)
Re: I don't want the .git directory next to my code., Wincent Colaiuta, (Thu Jan 17, 6:34 am)
Re: I don't want the .git directory next to my code., Kris Shannon, (Thu Jan 17, 2:38 am)
Re: I don't want the .git directory next to my code., Johannes Schindelin, (Wed Jan 16, 1:51 pm)
Re: I don't want the .git directory next to my code., David Symonds, (Wed Jan 16, 12:24 am)
Re: I don't want the .git directory next to my code., Dan McGee, (Tue Jan 15, 11:56 pm)
Re: I don't want the .git directory next to my code., Mike Krier, (Wed Jan 16, 2:07 am)