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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:33:45+00:00 2026-06-01T17:33:45+00:00

When restricting remote branches to a list of 2 or three (editing the .git/config

  • 0

When restricting remote branches to a list of 2 or three (editing the .git/config as seen in {^1}), refetching, carbage collectioning and cleaning all “refs” directories I still get a full list of all remote branches with git branch -avv {^2}

I expected to see v2 and v3 only as branches in the list of remote branches.
Any ideas how to fix this? Or is that the “git way” to present all remote branches either we might work with or not?

{^1}

[svn-remote "svn"]
url = https://example.com/svn/repos/MyRepo/SubPath
fetch = trunk:refs/remotes/trunk
branches = branches/{v2,v3}:refs/remotes/*

{^2}

* master         1234 [trunk: ahead 1] last msg master
  remotes/v1     2345 last msg svn branch v1
  remotes/v2     3456 last msg svn branch v2
  remotes/v3     4567 last msg svn branch v3
  remotes/v4     5678 last msg svn branch v4
  remotes/trunk  6789 last msg svn trunk
  • 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-01T17:33:47+00:00Added an answer on June 1, 2026 at 5:33 pm
    git branch -D -r remotes/v1 remotes/v4 remotes/trunk
    rm -rf .git/svn/refs/remotes/{v1,v4,trunk}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using git post-receive hook to deploy versions of the web application from three
I'm having problem restricting a query in mdx, using except function at where clause.
My question is quite similar to Restricting a LEFT JOIN , with a variation.
How would you go about Restricting Keyboard Input on a textbox using Jquery?
Is there a way of restricting a section of XSLT to a single node,
I inherited a program which is using Windows Desktop Search (WDS) on a remote
I have a script that retrieves objects from a remote server through an Ajax
The situation is as follows: A series of remote workstations collect field data and
I have a php script that shows all the picasa public albums by using
I want to let remote administrators (with local or domain credentials) control my Windows

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.