Not a git repository (or any of the parent directories): .git

简介: Not a git repository (or any of the parent directories): .git

今天准备在win10上面安装git,想把代码发布到github中,按照教程的方法一步一步下来,当配置完ssh和用户名,邮箱之后,发现下拉不下来github中的代码,出现如下错误。

679140-20160818210421265-1826604513.png


说是没有发现仓储,很是郁闷,通过ssh –T git@github.com发现连接是通的。


679140-20160818210511109-1637821643.png


之后发现原来是教程顺序错误了,应该现在文件夹中git init让git标记此文件夹为版本库就好了。


679140-20160818210514750-268136998.png


要是嫌配置麻烦,直接clone下,就OK,就可以直接进行代码的编辑之后提交就可以。




目录
相关文章
|
8月前
|
编译器 开发工具 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
87 0
|
安全 网络安全 开发工具
git 提示:fatal: Could not read from remote repository.
git 提示:fatal: Could not read from remote repository.
677 0
git 提示:fatal: Could not read from remote repository.
|
23天前
|
网络安全 数据安全/隐私保护
解决git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Pleas
解决git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Pleas
|
7月前
|
网络安全 开发工具 git
git clone之报错git@gitee.com:Permission denied (publickey).fatal: Could not read from remote repository
git clone之报错git@gitee.com:Permission denied (publickey).fatal: Could not read from remote repository
221 0
|
9月前
|
开发工具 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问题
1127 1
|
6月前
|
开发工具 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的问题
|
开发工具 git
Git 提示error:src refspec master does not match any
Git 提示error:src refspec master does not match any
94 0
|
Shell 开发工具 git
【Git初探】Git中fatal: Not a git repository (or any of the parent directories): .git错误的解决办法
【Git初探】Git中fatal: Not a git repository (or any of the parent directories): .git错误的解决办法
10319 0
|
开发工具 git
git报错unsafe repository xxx is owned by someone else的解决办法
git报错unsafe repository xxx is owned by someone else的解决办法
150 0
git报错unsafe repository xxx is owned by someone else的解决办法
|
缓存 Linux 开发工具
【Linux server】yum 安装git报错Errors during downloading metadata for repository......
前言 今天发现服务器没有装git,用yum安装git的时候因为网络的原因总是失败,想到了切换一下yum的源,切了之后呢发现报错:Errors during downloading metadata for repository 'AppStream'
844 0