githubschool / githubschool/Sept-5
touch in PowerShell script
- Lenguaje dominante
- HTML
- Estrellas
- 1
- Forks
- 0
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
This script: https://githubtraining.github.io/training-manual/#/18_create_local_repo?id=powershell uses the `touch` command which PowerShell doesn't recognise.
````
for ($d=1; $d -le 6; $d++) { touch file$d.md; git add file$d.md; git commit -m "adding file$d.md"; }
>>
touch : The term 'touch' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:30
+ for ($d=1; $d -le 6; $d++) { touch file$d.md; git add file$d.md; git ...
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (touch:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
fatal: pathspec 'file1.md' did not match any files
On branch master
nothing to commit, working tree clean
touch : The term 'touch' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:30
+ for ($d=1; $d -le 6; $d++) { touch file$d.md; git add file$d.md; git ...
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (touch:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
fatal: pathspec 'file2.md' did not match any files
On branch master
nothing to commit, working tree clean
touch : The term 'touch' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:30
+ for ($d=1; $d -le 6; $d++) { touch file$d.md; git add file$d.md; git ...
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (touch:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
fatal: pathspec 'file3.md' did not match any files
On branch master
nothing to commit, working tree clean
touch : The term 'touch' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:30
+ for ($d=1; $d -le 6; $d++) { touch file$d.md; git add file$d.md; git ...
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (touch:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
fatal: pathspec 'file4.md' did not match any files
On branch master
nothing to commit, working tree clean
touch : The term 'touch' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:30
+ for ($d=1; $d -le 6; $d++) { touch file$d.md; git add file$d.md; git ...
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (touch:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
fatal: pathspec 'file5.md' did not match any files
On branch master
nothing to commit, working tree clean
touch : The term 'touch' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:30
+ for ($d=1; $d -le 6; $d++) { touch file$d.md; git add file$d.md; git ...
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (touch:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
fatal: pathspec 'file6.md' did not match any files
On branch master
nothing to commit, working tree clean
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Abre la sección de PowerShell en la URL enlazada del manual de formación e inspecciona el bucle que crea file1.md hasta file6.md antes de añadirlos y hacer commit de ellos con Git. Confirma que el comando documentado funciona en PowerShell y que los seis archivos se crean, se añaden y se hace commit de ellos sin los errores indicados.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- git, powershell
- Área
- documentation
- Tipo de issue
- Error
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 50/100