Git异常:fatal: could not create work tree dir 'XXX': No such file or directory

简介:

GitHub实战系列汇总:http://www.cnblogs.com/dunitian/p/5038719.html

——————————————————————————————————————————————————————

很多人问,明明有git gui 和 github可以直接图形化操作的吗?全部指令干啥???

呃(⊙o⊙)…呃(⊙o⊙)… ===> 装逼~

O(∩_∩)O~,开玩笑的,其实就是为了通用和熟悉git,linux里面照样这样用,多熟悉点基础指令很有用的,

如果觉得顿时不开心了、无爱了==>推荐你快速入门:http://www.imooc.com/learn/390

———————————————————————————————————————————————————————

DNT@DESKTOP-PTACRF6 MINGW64 ~/Windows10 (master)
$ git clone git@github.com:dunitian/IPToPosition.git
fatal: could not create work tree dir 'IPToPosition': No such file or directory

这个看一下执行目录的路径==>~/Windows10 (master)

 

切换到根目录:cd ~

 

再输入指令就ok了

DNT@DESKTOP-PTACRF6 MINGW64 ~
$ git clone git@github.com:dunitian/IPToPosition.git
Cloning into 'IPToPosition'...
Warning: Permanently added the RSA host key for IP address '192.30.252.130' to the list of known hosts.
warning: You appear to have cloned an empty repository.
Checking connectivity... done.



本文转自毒逆天博客园博客,原文链接:http://www.cnblogs.com/dunitian/p/5035595.html,如需转载请自行联系原作者

相关文章
|
6月前
|
编译器 开发工具 git
【Git异常】You are in ‘detached HEAD‘ state, which means that you‘re not on any branch Checkout a branch
【Git异常】You are in ‘detached HEAD‘ state, which means that you‘re not on any branch Checkout a branch
67 0
|
8月前
|
开发工具 git
成功解决git rebase问题:First, rewinding head to replay your work on top of it...
成功解决git rebase问题:First, rewinding head to replay your work on top of it...
|
缓存 开发工具 git
报错:Git上传代码报错 will not add file alias already exists in index
报错:Git上传代码报错 will not add file alias already exists in index
390 0
|
2月前
|
网络安全 开发工具 git
git修改提交路径以及强制提交——异常:error: remote origin already exists.与异常:error: failed to push some refs to的解决
git修改提交路径以及强制提交——异常:error: remote origin already exists.与异常:error: failed to push some refs to的解决
20 0
|
7月前
|
Ubuntu Linux 开发工具
idea使用git提交代码报异常refusing to merge unrelated histories和unknown option `allow-unrelated-histories‘
idea使用git提交代码报异常refusing to merge unrelated histories和unknown option `allow-unrelated-histories‘
|
7月前
|
开发工具 git 开发者
解决fatal: not a git repository (or any of the parent directories): .git问题
解决fatal: not a git repository (or any of the parent directories): .git问题
1075 1
|
4月前
|
开发工具 git
解决:fatal: not a git repository (or any of the parent directories): .git的问题
解决:fatal: not a git repository (or any of the parent directories): .git的问题
|
6月前
|
运维 Shell 开发工具
【Git异常】Push master to origin/master was rejected by remote
【Git异常】Push master to origin/master was rejected by remote
101 0
|
9月前
|
开发工具 git
04-git-解决冲突与异常
04-git-解决冲突与异常
|
开发工具 git
fatal: unable to access ‘https://github.com/.../.git‘: Could not resolve host: github.com解决方法【亲测有效】
1.问题原因 今天在使用Github的时候突然出现了这样的报错,云里雾里,看了网上的解决办法,说是代理服务器的问题,尝试了无数遍无果 然后Ping了一下github网站,发现Ping不通:
1308 0