Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8598627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:11:56+00:00 2026-06-12T01:11:56+00:00

What is the MIME type of a Git repository? I’d like to link it

  • 0

What is the MIME type of a Git repository?

I’d like to link it from a project web page via <link rel="vcs" type="???" href="http://git.example.org/foo.git"/>, but for that I need to know the MIME type of a whole git repository.

The first file that git fetches from the HTTP transport is /info/refs?service=git-upload-pack, and it has a MIME type of application/x-git-upload-pack-advertisement. But that’s not for the whole repository.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T01:11:58+00:00Added an answer on June 12, 2026 at 1:11 am

    There’s a guy that proposes to use

    <link rel="vcs-git" href="git://example.org/foo.git" title="foo git repository"/>
    

    for that purpose.


    It strikes me odd that someone that is also called cweiske has a github project called phorkie that exactly suggests the following:

    remote pastes can be forked (rel=”vcs-git” and gist.github.com)

    (Markup by me)

    Did you already know the solution and want to have it confirmed?


    Edit:

    As OP mentions in his comment, he’s searching for a different way (i.e. not rel="vcs-git").

    As far as I could tell

    • there’s no official MIME-type for a git repo (as well as for other directories)
    • apparently there’s a need (at least it’s OP’s need) to define one

    So, let’s get it on:

    • the classification in categories at IANA indicates to use application because the others (audio, example, image, message, model, multipart, text, video) would be absolutely wrong.
    • an X- prefix is used for non standard files.
    • the application name would be git

    So, why not use application/x-git from now on…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Mime-types are specified in Tomcat's conf/web.xml file. It's look like this: <mime-mapping> <extension>txt</extension> <mime-type>text/plain</mime-type>
I'm creating a Sinatra web application which I would like to serve mime type
I would like to set the repsonse mime type to application/xhtml+xml How and where
I would like to add the following MIME type to a site run by
In jsp page directives we mentioned contentType=MIME-Type, in this MIME means what?
I would like to handle requests differently depending upon the MIME type. For example,
I would like to detect the MIME type of a file on the client
Why does the FindMimeFromData function from Urlmon.dll return MIME type application/octet-stream for many file
How do I stop Subversive from setting svn:mime-type to text/plain on initial commit? My
I have mapped the mimi type in web.xml <mime-mapping> <extension>htc</extension> <mime-type>text/x-component</mime-type> </mime-mapping> My xhtml

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.