LoginSignup
3
1

More than 3 years have passed since last update.

Git hub でcloneしようとすると「fatal: destination path ' ' already exists and is not an empty directory.」際の対応方法

Posted at
% git clone git@github.com:ochun0116/saku202010.git

でcloneしようとしたところ、
fatal: destination path 'saku202010' already exists and is not an empty directory.

と表記が出てしまいました。
「cloneするときは空っぽのフォルダにしてくれ!」

ってことらしく、対応はチェンジディレクトリして、そのフォルダがあるところでやるらしいです。

すなわち

% cd ../
% rm -fr saku202010
% git clone git@github.com:ochun0116/saku202010.git

です。
スクリーンショット 2020-10-17 12.54.05.png

できました!

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1