search

Home  >  Q&A  >  body text

How to delete cached remote branch list in git

Use git to deploy the code. git branch -a Many of the remote branches listed there have actually been deleted.
They still exist in git pull. How to delete such cache?

迷茫迷茫2813 days ago536

reply all(1)I'll reply

  • 世界只因有你

    世界只因有你2017-05-02 09:28:24

    git remote prune origin
    or
    git fetch -p

    reply
    0
  • Cancelreply