Sembra che io elimini un ramo su github quando non dovrei farlo.Come ripristinare un ramo su github?
Quello che ho fatto è stato il seguente:
1- aggiungo un nuovo Gitignore al mio sistema
2- Io uso
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
Quando ho fatto questo, ho avuto un ramo sul mio sistema locale ma il server aveva due filiali.
Quindi ho spinto i miei rami sul server e poiché non avevo il secondo ramo, il secondo ramo è stato cancellato sul server.
Come posso riportarlo indietro?
Sto utilizzando Github come server remoto.
come hai spinto i tuoi rami? – juanpastas
@juanpastas: Sto usando git dall'interno di VS e ho usato git> push> push multiple branch e seleziono il ramo che non avevo sul mio repository locale – mans
* push. Vedi http://stackoverflow.com/questions/1992364/git-recover-deleted-remote-branch – juanpastas