Cloné un representante remoto, maestro e hice algunos cambios. Antes de realizar cambios, el administrador ha creado una twig de desarrollo .
Ahora el command " git remote show origin " muestra la siguiente twig HEAD ambigua.
HEAD branch (remote HEAD is ambiguous, may be one of the following): development master Remote branches: development new (next fetch will store in remotes/origin) master tracked Local branch configunetworking for 'git pull': master merges with remote master Local ref configunetworking for 'git push': master pushes to master (up to date)
Ya hice cambios al maestro clonado. Ahora, ¿cómo impulsar los cambios a la twig de desarrollo recién creada?
Gracias
Si desea tener una twig local llamada development
"vinculada" a la twig de development
remoto, desde su estado actual (por ejemplo: su twig master
con compromisos adicionales), ejecute:
# create a new branch on the current commit, and switch to it : $ git checkout -b development # push your moidifcations to the remote "development" branch, # and tag your local branch to follow the remote "development" branch : $ git push --set-upstream origin development
Si desea enviar a cualquier sucursal remota:
git push origin mylocalbranch:remotebranch # for example : git push origin master:development # if you add '-u' or '--set-upstream', your local branch will # follow the remote branch : git push -u origin mylocalbranch:remotebranch