Re: contents of a .git file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2020-05-17 at 21:58:41, bruce wrote:
> Hi.
> 
> Hope this is a place to ask this.
> 
> There are lots of foo.git files.
> 
> I'm trying to figure out what's un a git file. As an example,
>  gets the drupal repos.
> However, I can't seem to find the drupal.git file. Even a net search
> doesnt seem to turn up a file that I can view!!
> 
> Any pointers/thoughts would be helpful.

The ending ".git" is just a conventional approach to indicate that a URL
or directory is a bare repository.  When using HTTP, the actual files
are served from other locations, depending on whether the site is using
the smart or dumb HTTP protocol.  Most major hosting platforms prefer
the smart protocol because it can send a lot less data.

So there really isn't a single file; instead, there's either some static
files and some manifests (for the dumb protocol) or conversations with a
CGI client (for the smart protocol).  You can read more about it in
Documentation/technical/http-protocol.txt, and if you're interested, you
can run your operations with GIT_CURL_VERBOSE=1 to see the endpoints
that are contacted.  (Be aware that that output may contain
credentials.)
-- 
brian m. carlson: Houston, Texas, US
OpenPGP: https://keybase.io/bk2204

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux