Instalé GIT y el cliente de Cygwin GIT. Cuando se abre la window de commands y aparece $ prompt, escribo:
Git Init
Dice:
Baash: command no encontrado.
Ten cuidado con mayúsculas. Deberías escribir todo en minúsculas:
git init
Si aún no funciona, escriba este command:
echo $PATH
Luego busque el git binary en los directorys listdos por este command. Si no puede encontrarlo, vuelva a instalar git en uno de esos directorys o agregue el directory de git binary a esta list (google "agregar un directory a mi ruta").
"Baash"? ¿Tiene un script que tiene #! / Bin / baash en la parte superior, en lugar de #! / Bin / bash?
No fue más bien:
bash: $: command not found
¿Qué indicaría que no se hace reference a git en la PATH
entorno PATH
?
O que intentes escribir:
$ git init
en lugar de
git init
(no escriba $
)
Pruebe este command:
type git
Debería responder con:
git is /usr/bin/git
Tratar:
/usr/bin/git init
Cuál debería responder con:
Initialized empty Git repository in ...
Intenta también:
echo $SHELL
Que debería regresar:
/bin/bash
También puedes probar:
file /usr/bin/git
Que debería darte:
/usr/bin/git: MS-DOS executable PE for MS Windows (console) Intel 80386 32-bit