Gente,

Después de la charla que se dio hace una semanas sobre sistemas de
control de versiones, me puse a practicar con git, porque si bien lo
había usado para repositorios locales, nunca lo había utilizado para
repositorios remotos.

En la charla que dio Andrés de Git vs Mercurial, ésto se vió un
poquito por arriba y sobre el final, asique me gustaría ver si me
puede ayudar al respecto, a ver si estoy haciendo mal las cosas,
entiendo mal los errores que me tira git, o qué está pasando. La cosa
es así:

Yo tengo un repositorio en un servidor remoto. Éste sería mi
repositorio de "produccion". Desde mi laptop donde trabajo, le hago un
git clone y me traigo todo el repositorio a mi servidor local. Hago
los cambios necesarios, commiteo y una vez que veo que todo está listo
para subir, intento hacer (según manda, al menos, mi lógica) un git
push origin master

Ahora bien, ésto me trae MUCHOS problemas! Para ser un poco más
precisos, el error en concreto ( y que no logro entender), es éste:


remote: error: refusing to update checked out branch: refs/heads/master
remote: error: By default, updating the current branch in a non-bare repository
remote: error: is denied, because it will make the index and work tree
inconsistent
remote: error: with what you pushed, and will require 'git reset
--hard' to match
remote: error: the work tree to HEAD.
remote: error: You can set 'receive.denyCurrentBranch' configuration variable to
remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into
remote: error: its current branch; however, this is not recommended unless you
remote: error: arranged to update its work tree to match what you pushed in some
remote: error: other way.
remote: error: To squelch this message and still keep the default behaviour, set
remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.
! [remote rejected] master -> master (branch is currently checked out)
error: failed to push some refs to 'xxxx'.

Según entiendo, no me deja pushear porque va a ser el index y al arbol
inconsistentes. Por qué es esto!? Lo más parecido a lo que me pasa que
encontré, está por acá:

http://hans.fugal.net/blog/2008/11/10/git-push-is-worse-than-worthless/


Alguno me podría dar una mano? Qué estoy haciendo mal? Muchas gracias!


-- 
Pablo María Martelletti
_______________________________________________
Glug mailing list
[email protected]
http://glugcen.dc.uba.ar/cgi-bin/mailman/listinfo/glug

Responder a