Tengo problemas para avanzar a mi twig gh-pages
.
Tengo una count de organización, con código de server y cliente (aunque creo que esto no debería importar). Entonces la estructura es así:
my-org my-repo client src server src
Así es como estoy reproduciendo el problema:
Mi directory ahora contiene esto:
my-repo client src dist <-- this is what I want to go into gh-pages branch server src
Los files en este directory se desean servir a través de páginas github. Entonces corro
git subtree push --prefix client/dist origin gh-pages
Sin embargo, esto produce:
git subtree push --prefix client/dist origin gh-pages git push using: origin gh-pages To github.com:my-org/my-repo.git ! [rejected] c7ac6936acbe0f5751755d60776074b98dae54d6 -> gh-pages (non-fast-forward) error: failed to push some refs to 'git@github.com:my-repo/my-repo.git' hint: Updates were rejected because a pushed branch tip is behind its remote hint: counterpart. Check out this branch and integrate the remote changes hint: (eg 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Realmente no entiendo este post (¿cómo puede algo estar detrás de su contraparte remota en esta situación?), Y también siguiendo el consejo (git pull) no hace nada,
git pull en master y en gh-pages devuelve lo esperado:
Already up-to-date.
¿Qué me estoy perdiendo? (Estoy en la versión 2.10.1 de git)