git fatal: destination path '**' already exists and is not an empty directory.解决

网上说须要删除或者从新命名已经存在的本地文件,而后在clone 其实不用。git

第一步 :进入到已存在的目录  cd (/file)rem

第二步: 初始化git  initit

第三步: 添加远程仓库地址  git remote add origin  (address)ast

第四步:  添加本地代码  git add .file

第五步: 提交本地代码 git commit -m "init"命名

第六步: 提交到远程仓库 git push origin master 文件