fatal: not a git repository (or any of the parent directories): .git的解决方案

看效果

 

执行git clone拉取代码出现错误RPC failed,curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054解决方法

执行git clone拉取代码出现错误RPC failed,curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054解决方法_小蜜蜂1010的博客-CSDN博客https://blog.csdn.net/u011174699/article/details/106694704/然鹅还是有问题

问题1、

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

解决:

$ git init

问题2、

fatal: No such remote 'origin'

 git remote set-url 是修改远程的url的命令,前提是先有远程url

so  你必须先增加一个远程url

 git remote add origin "xxx.git"

最后重新设置即可

问题3、

Git: There is no tracking information for the current branch.

在执行git pull的时候,提示当前branch没有跟踪信息:

git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.

对于这种情况有两种解决办法,就比如说要操作master吧,一种是直接指定远程master:

git pull origin master

最后还是有问题的话,删掉该目录,重新Git clone 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值