githubschool / githubschool/Sept-5
touch in PowerShell script
- Vorherrschende Sprache
- HTML
- Sterne
- 1
- Forks
- 0
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Öffne den PowerShell-Abschnitt unter der verlinkten URL des Schulungshandbuchs und überprüfe die Schleife, die file1.md bis file6.md erstellt, bevor du sie mit Git hinzufügst und committest. Bestätige, dass der dokumentierte Befehl in PowerShell funktioniert und dass alle sechs Dateien erstellt, hinzugefügt und ohne die gemeldeten Fehler committed werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- git, powershell
- Bereich
- documentation
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 50/100