fatal: destination path ‘文件夹名’ git clone already exists and is not an empty directory解决方法
2017-06-07 16:37
971 查看
git问题及解决方法
今天在使用git的时候出现了这个错误,我是先在oschina创建了git仓库地址,然后使用git clone https://xxxx@xx.git 操作时,出现的fatal: destination path ‘文件夹名’ git clone already exists and is not an empty directory
解决方法如下:
git init
git remote add origin https://xxx@xx.git
git fetch
git branch master origin/master
git checkout master
然后你就可以用
git add .
git commit -m “提交信息”
git push origin master
对你的代码进行提交上传了。
如果本文对你有帮助,点个赞呗,如果没有帮助,还请指出。 =.=
相关文章推荐
- 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 项目到一个非空目录
- 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 '.' already exists and is not an empty directory. 错误及解决办法
- A context path must either be an empty string or start with a '/' and do not end with a '/' 问题解决方法
- GIT fatal:empty string is not valid pathspec
- destination exists and is not a directory
- 关于make sure class name exists, is public, and has an empty constructor that is public解决办法
- The path "/usr/src/linux/include" is not an existing directory.解决方式
- Bower : ENOGIT git is not installed or not in the PATH解决方法
- bower install 错误 git is not installed or not in the PATH 解决方法
- Bower执行报错解决方法 : ENOGIT git is not installed or not in the PATH
- Oracle ORA-31000: Resource 'http://xmlns.oracle.com/xdb/acl.xsd' is not an XDB schema 解决方法
- Package already exists. Note: Views might filter empty parent packages.的解决方法
- RAC root.sh Oracle CRS stack is already configured and will be running under init(1M) 的解决方法
- Unable to add window -- token null is not for an application错误的解决方法
- SSH框架 Bean property * is not writable or has an invalid setter method错误分析与解决方法
- Oracle ORA-31000: Resource 'http://xmlns.oracle.com/xdb/acl.xsd' is not an XDB schema 解决方法
- Oracle ORA-31000: Resource 'http://xmlns.oracle.com/xdb/acl.xsd' is not an XDB schema 解决方法