Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/10/2016, 07:01
tico74
 
Fecha de Ingreso: diciembre-2002
Mensajes: 473
Antigüedad: 21 años, 4 meses
Puntos: 0
Solucion a error cuando hago un commit

Buenas, queria consultarles por un error que suele salirme siempre que hago commit and pull (en smartg git):

error: failed to push some refs to '[email protected]:repo1/repo.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Not all refs have been pushed.


Yo soy inexperto en git y tambien me preguntaba si antes de un commit debo traerme los nuevos cambios con un git pull o algo asi.

estoy trabajando en una rama llamada (mobile) en este momento (segun entiendo esto me delimita los archivos que manejo)

note asimismo que se al darle enter cuando me pide la password y se verifica la clave publica esto sucede, no se si es coincidencia pero suelo verlo

luego generalmente se arregla (o eso creo) con git pull y git push, pero bueno, ya me paso 2 veces y no quiero tener problemas con mi jefe y el trabajo.


Gracias desde ya por alguna ayuda