GIT: remove remote branches with no local tracking branch -


let's git branch -a outputs this:

  • a
  • b
  • c
  • *master
  • remotes/origin/a
  • remotes/origin/b
  • remotes/origin/c
  • remotes/origin/master
  • remotes/origin/x
  • remotes/origin/y
  • remotes/origin/z

in bold branches (x, y, z) in remote repository have not checked them out yet , don't intend to, related project don't participate in.

is there command remove remote branches (those saved on repository, not actual remote branch in remote) not have local tracking branch?

edit: intend remove remote branches saved in repository, showing existence of branch in remote. not want remove actual branches in remote.

edit 2: clarification in comment mattmilten

you can recreate remote branches git pull, don't git pull.

i git fetch origin master b c , merge or rebase or want branches master, a, b or c.

point is, whenever "git pull" (for reason), branches don't want created , seems have no simple option remove them afterwards.

no, not possible. information (all) branches part of repo , copied when new clone created. need ignore these branches or run git branch list local branches.

how able retrieve remote branches @ later time, if delete information existence?


Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -