誤ってクローンしたフォルダを削除したい。
解決したいこと
研修課題にて先生のGithub上から問題をフォークして自身のGithubに落としてから
クローンしなければいけないところ、誤って先生のを直接クローンしてローカルに入れてしまったフォルダを削除したいです。
【jquery-5-3】というフォルダの中に間違ってクローンした【jquery_practice】を消したいです。
下記にVScodeのターミナルで入力した内容を記載します。
発生している問題・エラー
PS C:\Users\toshi\Desktop\mission\chapter-5\jquery-5-3> git clone https://<私のユーザー名>:<取得したトークン>@github.com/prs-teacher/jquery_practice.git
Cloning into 'jquery_practice'...
remote: Enumerating objects: 79, done.
remote: Counting objects: 100% (31/31), done.
remote: Compressing objects: 100% (24/24), done.
Receiving objects: 100% (79/79), 16.08 KiB | 219.00 KiB/s, done.d 7 (delta 7), pack-reused 48
Resolving deltas: 100% (16/16), done.
発生場所 行:1 文字:5
+ $rm -rf jquery_practice
+ ~~~
式またはステートメントのトークン '-rf' を使用できません。
発生場所 行:1 文字:9
+ $rm -rf jquery_practice
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
PS C:\Users\toshi\Desktop\mission\chapter-5\jquery-5-3> git rm jquery_practice
fatal: Unable to create 'C:/Users/toshi/.git/index.lock': File exists.
Another git process seems to be running in this repository, e.g.
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
PS C:\Users\toshi\Desktop\mission\chapter-5\jquery-5-3> cd jquery-5-3
cd : パス 'C:\Users\toshi\Desktop\mission\chapter-5\jquery-5-3\jquery-5-3' が存在しないため検出できません。
発生場所 行:1 文字:1
+ cd jquery-5-3
+ CategoryInfo : ObjectNotFound: (C:\Users\toshi\...-5-3\jquery-5-3:String) [Set-Location], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
PS C:\Users\toshi\Desktop\mission\chapter-5\jquery-5-3> git rm jquery_practice
fatal: Unable to create 'C:/Users/toshi/.git/index.lock': File exists.
Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
PS C:\Users\toshi\Desktop\mission\chapter-5\jquery-5-3> git status
warning: could not open directory 'Application Data/': Permission denied
warning: could not open directory 'Cookies/': Permission denied
warning: could not open directory 'Local Settings/': Permission denied
warning: could not open directory 'My Documents/': Permission denied
warning: could not open directory 'NetHood/': Permission denied
warning: could not open directory 'PrintHood/': Permission denied
warning: could not open directory 'Recent/': Permission denied
warning: could not open directory 'SendTo/': Permission denied
warning: could not open directory 'Templates/': Permission denied
warning: could not open directory 'スタート メニュー/': Permission denied
On branch master
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
../../../../.bash_history
../../../../.git-for-windows-updater
../../../../.gitconfig
../../../../.lesshst
../../../../.vscode/
../../../../3D Objects/
../../../../AppData/
../../../../Contacts/
../../../../Creative Cloud Files/
../../../
../../../../Documents/
../../../../Downloads/
../../../../Favorites/
"../../../../Google \343\203\211\343\203\251\343\202\244\343\203\226/"
../../../../Links/
../../../../MicrosoftEdgeBackups/
../../../../Music/
../../../../NTUSER.DAT
../../../../NTUSER.DAT{53b39e88-18c4-11ea-a811-000d3aa4692b}.TM.blf
../../../../NTUSER.DAT{53b39e88-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000001.regtrans-ms
../../../../NTUSER.DAT{53b39e88-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000002.regtrans-ms
../../../../OneDrive/
../../../../Pictures/
../../../../Saved Games/
../../../../Searches/
../../../../Sti_Trace.log
../../../../cd
../../../../gitsample/
../../../../index.html
../../../../ntuser.dat.LOG1
../../../../ntuser.dat.LOG2
../../../../ntuser.ini
"../../../../\345\277\234\345\257\276\346\226\207\350\250\200\351\233\2062015\343\200\2007\346\234\210\357\274\255\357\274\264\347\224\250.docx"
nothing added to commit but untracked files present (use "git add" to track)
自分で試したこと
調べると【git rm】と入力すると消えるそうですが、何も変わらず
自信のローカルにあるフォルダも消えず
0