search

Home  >  Q&A  >  body text

How to restore remote branches in git

  1. My hands were shaking today. I used git push origin :develop to delete the branch origin/develop of the remote library. The local trace library is called dev_local (this one was not deleted). After five seconds, I realized that I had deleted it by mistake. branch.

I am urgently looking for a solution, how to restore the remote branch. Urgent request.

PHPzPHPz2771 days ago584

reply all(2)I'll reply

  • PHPz

    PHPz2017-05-02 09:30:08

    If you have it locally, just push it there

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-02 09:30:08

    Push another one, if this branch is still left locally?

    reply
    0
  • Cancelreply