Closed fititnt closed 6 years ago
Sintaxe:
git branch -m gh-pages master # renomeia ramo local
git push origin :gh-pages master # envia mudanças para ramo remoto (ver anotações)
# fititnt at bravo in /alligo/code/pokemongovet/pokemongovet.github.io on git:master o [17:57:14]
$ git push origin :gh-pages master
Total 0 (delta 0), reused 0 (delta 0)
To git@github.com:pokemongovet/pokemongovet.github.io.git
* [new branch] master -> master
! [remote rejected] gh-pages (refusing to delete the current branch: refs/heads/gh-pages)
error: failed to push some refs to 'git@github.com:pokemongovet/pokemongovet.github.io.git'
Nota: trocado nas configurações para usar como ramo padrão o master
em vez de gh-pages
, então o comando para deletar o antigo branch funciona
# fititnt at bravo in /alligo/code/pokemongovet/pokemongovet.github.io on git:master o [17:58:11]
$ git push origin :gh-pages master
To git@github.com:pokemongovet/pokemongovet.github.io.git
- [deleted] gh-pages
Veja #68. Dependência de #66.