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 7874355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:47:26+00:00 2026-06-03T02:47:26+00:00

I have always assumed that the .git/branches directory is for legacy purposes and that

  • 0

I have always assumed that the .git/branches directory is for legacy purposes and that git used to use that directory, but now uses the .git/refs directory instead. Is this true? If not, then what is the purpose of that directory since I have never seen it used or referenced.

EDIT

I’m using git version 1.7.3.4.

  • 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-03T02:47:27+00:00Added an answer on June 3, 2026 at 2:47 am

    The now “slightly deprecated” use of .git/branches is described in the useful gitrepository-layout documentation:

    branches: A slightly deprecated way to store shorthands to be used to specify URL to git fetch, git pull and git push commands is to store a file in branches/<name> and give name to these commands in place of repository argument.

    In the comments above, the question was raise of why some people have this directory and some don’t. It seems that a commit was introduced in 2009 that stopped git from creating the .git/branches directory by default. However, more recently that change was reverted (i.e. meaning that the .git/branches will be created on git init, etc.), with the following justification from Junio C. Hamano:

    There is not enough justification for doing this. We do not update
    things in .git/branches and .git/remotes anymore, but still do read
    information from there and will keep doing so.

    Besides, this breaks quite a lot of tests in t55?? series.

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

Sidebar

Related Questions

Connection.close() may throw SqlException , but I have always assumed that it is safe
For some reason I have always assumed that most of the time a variable
I have always used the mouseover event, but while reading the jQuery documentation I
I read somewhere (and have observed) that starting threads is slow. I always assumed
I was looking forward to use W8. I always assumed that 'live tiles' are
I have always assumed that having a package in the 'Depends' field would automatically
The default input type is 'text'. I have always assumed then that CSS declarations
I have always hoped and assumed that it is not - that set theory
For some reason, I've always assumed that readonly fields have overhead associated with them,
I always assumed that <var> += 1 and <var> = <var> + 1 have

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.