¿Cómo envio una rama Git local a la rama master en el control remoto?
Tengo una rama llamada develop en mi repositorio local, y quiero asegurarme de que cuando la empuje a origin se fusiona con origin/master. Actualmente, cuando lo presiono se agrega a una rama de desarrollo remoto.
¿Cómo puedo hacer esto?
383
2 answers
$ git push origin develop:master
O, más generalmente
$ git push <remote> <local branch name>:<remote branch to push into>
658
Author: mipadi,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-01-26 18:33:01
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-01-26 18:33:01
Como la gente mencionó en los comentarios, probablemente no quieras hacer eso... La respuesta de mipadi es absolutamente correcta si sabes lo que estás haciendo.
Yo diría:
git checkout master
git pull # to update the state to the latest remote master state
git merge develop # to bring changes to local master from your develop branch
git push origin master # push current HEAD to remote master branch
161
Author: Eugene Sajine,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-07-29 20:17:23
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-07-29 20:17:23