git clone 非空目录
来源:互联网 发布:adblock plus mac 编辑:程序博客网 时间:2024/06/07 20:25
如果我们往一个非空的目录下 clone Git 项目,就会提示错误信息:
fatal: destination path ‘.’ already exists and is not an empty directory.
解决的办法是:
进入非空目录,假设是 /workdir/proj1
git clone –no-checkout https://git.oschina.NET/NextApp/platform.git tmp
mv tmp/.git . #将 tmp 目录下的 .git 目录移到当前目录
rmdir tmp
git reset –hard HEAD
然后就可以进行各种正常操作了。
转:http://www.oschina.net/question/54100_167919?sort=time
阅读全文
0 0
- git clone 非空目录
- 如何 clone git 项目到一个非空目录
- 如何 clone git 项目到一个非空目录
- 如何 clone git 项目到一个非空目录
- git clone 远程仓库到本地(或服务器)非空目录下
- fatal: destination path '.' already exists and is not an empty directory.如何 clone git 项目到一个非空目录
- fatal: destination path '.' already exists and is not an empty directory.如何 clone git 项目到一个非空目录
- git clone 指定目录
- 删除非空目录
- git管理空目录
- Git删除空目录
- git上传空目录
- Git提交空目录
- EVC删除非空目录
- 删除多级非空目录
- EVC删除非空目录
- EVC删除非空目录
- 删除非空目录文件夹
- bzoj 1669: [Usaco2006 Oct]Hungry Cows饥饿的奶牛
- 单向链表-查找和删除
- <8/21>集训日记
- 初识函数
- 配置gulp
- git clone 非空目录
- 直播行业面对前所未有的严峻形势
- 单片机编程多动作(操作、事件)的设计方法心得(一)
- gitlab常规维护命令
- 201512-4 送货 ccf
- HDU 4614 Vases and Flowers
- DNS高速缓存服务器及DDNS动态域名服务器设置
- SQL-basic
- Java字节码