SourceTreeでエラー「fatal: destination path ‘xxx’ already exists and is not an empty directory.」が発生した場合の対処法

SourceTreeでエラー「fatal: destination path ‘xxx’ already exists and is not an empty directory.」が発生した場合の対処法

gitのGUIクライアントSourceTreeでエラー「fatal: destination path ‘xxx’ already exists and is not an empty directory.」が発生した場合の対処法を記述してます。

環境

  • OS windows10 pro 64bit
  • git version 2.36.1.windows.1
  • SourceTree 3.4.8

エラー全文

clone実行に発生。

エラー全文

git -c filter.lfs.smudge= -c filter.lfs.required=false -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks clone --branch develop http://192.168.xxx.xxx/xxx/xxx.git C:\Users\xxx\Documents\xxx
Cloning into 'C:\Users\xxx\Documents\xxx'...
fatal: destination path 'C:\ititan' already exists and is not an empty directory.
エラー終了しました。エラーの内容は上記をご覧ください。

原因

保存先のフォルダに空のフォルダを選択していなかったため

対処法

保存先に空のフォルダを指定してから「クローンする」