fatal: destination path '.' already exists and is not an empty directory.如何 clone git 项目到一个非空目录
来源:互联网 发布:武当七侠java 编辑:程序博客网 时间:2024/05/21 08:53
解决的办法是:
1. 进入非空目录,假设是 /workdir/proj1
2. git clone --no-checkout https://git.oschina.net/NextApp/platform.git tmp
3. mv tmp/.git . #将 tmp 目录下的 .git 目录移到当前目录
4. rmdir tmp
5. git reset --hard HEAD
然后就可以进行各种正常操作了。
0 0
- 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 项目到一个非空目录
- fatal: destination path ‘文件夹名’ git clone already exists and is not an empty directory解决方法
- git fatal: destination path '**' already exists and is not an empty directory.解决
- fatal: destination path '.' already exists and is not an empty directory. 错误及解决办法
- 如何 clone git 项目到一个非空目录
- 如何 clone git 项目到一个非空目录
- 如何 clone git 项目到一个非空目录
- destination exists and is not a directory
- directory "*" exists but is not empty
- git clone 非空目录
- git到一个非空项目上
- NetBeans 6.5 新建项目 project folder already exist and is not empty
- git clone 远程仓库到本地(或服务器)非空目录下
- “rmdir: failed to remove ‘tmp’: Directory not empty”解决方案–Linux命令行如何删除非空文件夹
- git err : fatal: remote origin already exists.
- android-Git fatal: remote origin already exists
- git出现 fatal: remote origin already exists.
- H5中级进阶-多屏互动
- IO_Homework1~2 打印九九乘法表 复制文件
- java中三元运算符
- 打印各种图案
- 优化Java堆大小的5个技巧
- fatal: destination path '.' already exists and is not an empty directory.如何 clone git 项目到一个非空目录
- http://www.cnblogs.com/laov/p/3434917.html
- 【HDU5731 2016 Multi-University Training Contest 1I】【轮廓线DP+容斥】Solid Dominoes Tilings nm棋盘1x2多边形填充稳定方案
- 本鲨的公众号,日后大部分技术文章将发表在微信手机端上
- JAVA设计模式之门面模式(外观模式)
- Android获取摄像头支持的分辨率
- vlan入门知识
- Java8里请不要再使用循环语句
- 为什么Entity Framework不能进行跨数据库查询