Error de clonación de Git después de la actualización de OS X Mountain Lion


Acabo de actualizar mi MBP a OSX 10.8 y estoy tratando de iniciar un nuevo proyecto con brunch.io que por defecto usa coffeescript y yo prefiero javascript así que necesito clonar el simple esqueleto de js. Así que algo como esto:

brunch new <someprojectname> --skeleton https://github.com/brunch/simple-js-skeleton.git

Que es lo que he usado anteriormente y funcionó bien. Pero hoy estoy recibiendo el siguiente error:

error: Git clone error: /bin/sh: git: command not found

Realmente no sé cómo arreglar esto...

Author: Jonathan Miller, 2012-07-27

5 answers

Puede descargar la colección oficial de Apple de utilidades de línea de comandos para desarrolladores (que incluye git):

  • Abriendo Xcode, yendo a Preferencias > Descargas y haciendo clic en el botón instalar junto a 'Command Line Utilities'
  • Yendo a developer.apple.com/downloads , y descargando "Xcode 4.4 Command Line Tools for OSX 10.8" de la categoría Xcode 4.4
 40
Author: Jamie,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-07-27 22:00:02

Marque su .bashrc o .bash_profile si el PATH apropiado está establecido. ¿Instalaste git a través de macports? La actualización probablemente eliminó /opt/bin o /opt/local/bin de la RUTA.

 4
Author: Femaref,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-07-27 19:23:10

Tengo todo funcionando de nuevo. Al parecer, la actualización de Mountain Lion dejó caer git por completo. Simplemente descargando el paquete de instalación desde aquí y ejecutándolo tiene todo funcionando de nuevo.

 3
Author: Jonathan Miller,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-07-27 20:16:29

Debe cambiar la configuración de seguridad vaya a Preferencias del sistema > Seguridad y Privacidad > Cambiar Permitir aplicaciones descargadas desde Anywhere> En cualquier lugar. Existe la posibilidad de que su configuración de seguridad se bloquee en ese caso, presione el bloqueo en la parte inferior izquierda en el panel pref.

 0
Author: manishnath,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-11-07 19:39:27

Basado en este artículo:

  1. Abre tu ~/.bash_profile, si utilizas nano sería : sud sudo nano ~/.bash_profile

  2. Añadir esta línea al archivo: export PATH=PATH PATH: / usr / local / git / bin /

  3. Guardar y cerrar el archivo y escribir en el terminal: $ fuente ~/.bash_profile

 0
Author: Tobin Greensweig,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2013-04-07 06:37:11