My git server and all repositories were accidentally broken, and I'm trying to restore everything back to normal. However no matter how I tried, some of the remote branches just don't restore.
My situation describes below:
git branch -a
* master
branch_1
branch_2
branch_3
remotes/origin/HEAD -> origin/master
remotes/origin/branch_1
remotes/origin/branch_2
remotes/origin/branch_3
remotes/origin/branch_4
remotes/origin/branch_5
I local repo has some branches created after cloning from server. And rest of them weren't being touched. But the records were all in the local repo. (able to be switched)
And I was trying to push everything to new server. But all records under "remotes/*" weren't be able to pushed to new server.
Any idea how to restore everything to new server?