For remote branches that have been removed via git prune --all origin
, how do you restore them?
Assumption
There are over 100 branches and shared by a team of 20 people and everyone is working on different sets of branches.
For remote branches that have been removed via git prune --all origin
, how do you restore them?
There are over 100 branches and shared by a team of 20 people and everyone is working on different sets of branches.
Pushing all branches back again seems the easiest solution (as in "Set up git to pull and push all branches")
(unless you find those branches still referenced in the reflog of the server)
Then you can make sure your local repo is tracking them again, with that one-liner in "Track all remote git branches as local branches".