me estoy haciendo la advertencia¿Cómo verifico si un repositorio está vacío?
warning: You did not specify any refspecs to push, and the current remote
warning: has not configured any push refspecs. The default action in this
warning: case is to push all matching refspecs, that is, all branches
warning: that exist both locally and remotely will be updated. This may
warning: not necessarily be what you want to happen.
warning:
warning: You can specify what action you want to take in this case, and
warning: avoid seeing this message again, by configuring 'push.default' to:
warning: 'nothing' : Do not push anything
warning: 'matching' : Push all matching branches (default)
warning: 'tracking' : Push the current branch to whatever it is tracking
warning: 'current' : Push the current branch
que es (creo) una advertencia de que a distancia no está desnudo. Sin embargo, intenté que el control remoto estuviera desnudo, y el directorio (que está en el formulario foo.git
) no tiene un directorio .git en él. ¿Cómo puedo verificar que esté vacío?
Información adicional: El repositorio remoto está en una computadora con git 1.5.4.3, y el repositorio local tiene git 1.6.3.3. Ambas máquinas son Ubuntu, la local es Karmic Koala, la remota es una versión anterior.
acaba de añadir los criterios que indica un repositorio es un desnudo uno – VonC
'$ git rev-parse --is-desnudo-repository' - de crédito ** ** jberryman [favor upvote su respuesta ] (http://stackoverflow.com/a/14734826/495132) –