pokemongovet / pokemongovet.github.io

Projeto para incentivar adoção de animais pessoas que amam pokemons virtuais
https://pokemongovet.github.io/
Other
102 stars 37 forks source link

Renomear branch de "gh-pages" para "master" #69

Closed fititnt closed 6 years ago

fititnt commented 6 years ago

Veja #68. Dependência de #66.

fititnt commented 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'

captura de tela de 2017-09-22 17-58-49


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

captura de tela de 2017-09-22 17-59-50

# 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