在非空目錄下 git clone 項目時會提示錯誤信息:
fatal: destination path '.' already exists and is not an empty directory.
解決辦法:
1. 進入非空目錄,假設是 /dir/jk1
2. git clone --no-checkout https://git.oschina.net/jankerli/test.git tmp
3. mv tmp/.git .
4. rmdir tmp
5. git reset --hard HEAD