fatal: destination path '.' already exists and is not an empty directory.如何 clone git 项目到一个非空目录
来源:互联网 发布:水泥抗折标准数据 编辑:程序博客网 时间:2024/06/06 02:41
解决的办法是:
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.
- A101
- python的id()函数介绍
- vs2012 error link2028
- 网易2017校园招聘笔试题 优雅的点
- 硬盘的存储原理和内部架构
- fatal: destination path '.' already exists and is not an empty directory.如何 clone git 项目到一个非空目录
- [Android] Apache 的下载安装、配置以及卸载
- 使用python对cocos2dx的手游图片资源进行加密
- Android 2.0后常用界面切换效果
- 3676: [Apio2014]回文串
- 【数据库】SQL PLUS里的命令使用
- visual studio2015 update 3与 ue4.10.4不兼容
- ssh整合时报的错误
- 陶哲轩实分析 6.4 节习题试解