gitrefprefetchgitk

What are these prefetch refs and how do I get rid of them?


I have been using gitk for years. Today I noticed that there are a bunch of new refs in my repo. See screenshot below.

enter image description here

The ref is prefetch/remotes/origin/<branch>, and there is one like this for every branch.

  1. What are these?
  2. Why are they only showing up now?
  3. How do I get rid of them?

Solution

    1. They are refs used internally by Git since version 2.42 that exist to optimize performance.

    2. Git was updated on the remote.

    3. Unsatisfying answer, but you can't.