che sto ricevendo l'avvertimentoCome posso verificare se un repository è nudo?
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
che è (credo) un avvertimento che non è remota nudo. Tuttavia, intendevo che il remoto fosse nuda e che la directory (che ha il formato foo.git
) non contenga una directory .git. Come posso verificare che sia nuda?
Ulteriori informazioni: il repository remoto si trova su un computer con git 1.5.4.3 e il repository locale ha git 1.6.3.3. Entrambe le macchine sono Ubuntu - quella locale è Karmic Koala, quella remota è una versione precedente.
Inseriti i criteri che indica un repository è un nude uno – VonC
'$ git rev-parse --is-bare-repository' - credito ** ** jberryman [si prega di upvote la sua risposta ] (http://stackoverflow.com/a/14734826/495132) –