- 报错
kex_exchange_identification: read: Connection reset by peer
Connection reset by 180.97.125.228 port 22
fatal: Could not read from remote repository.
gitee推送远程仓库没有权选。配置ssh
- 推送分支报错
remote: HTTP Basic: Access denied
fatal: Authentication failed for
'https://gitlab.vmic.xyz/qafed/service-message-crm.git/'
打开windows的凭据管理器删除密码(或者 git remote set-url origin https://gitlab.vmic.xyz/xxx/xxx(换成你的仓库地址) 再执行下git config --global credential.helper manager),重新推送
如果还是失败,说明账号异常了需要联系公司gitlub管理人员
- git进行操作时出现报错
There is no tracking information for the current branch.
本地和远程分支建立下联系即可:
git branch --set-upstream-to=origin/远程分支的名字(我的是master) 本地分支的名字(我的是master)
- git 进行操作时出现报错
interactive rebase in progress; onto 78d1a34
两种解决方案
1). 使用 git commit --amend 命令修订当前的提交
2)使用 git rebase --continue 命令继续代码的提交(推荐),执行之后,需要重新提交,解决一下当前的代码冲突之后重新提交直至没有rebase提示,就可以正常提交了
- (git push时有可能)出现下面的错误
Your branch is up-to-date with 'origin/master'.
// 思路:创建并切换新分支,在新分支add commit提交代码,再切回主分支合并代码到主分支。然后git push提交代码并删除该分支
链接
- git push origin master 失败 ,报错
! [remote rejected] master -> master (pre-receive hook declined)
服务器上还没有master分支
需要maintainer或者owner才有权限
哦,你是developer,没有权限创建分支
- git commit时出现
-modified content, untracked content
原因时文件夹内有多个.git文件,删除一个重新commit即可
- git push提交代码时出现
OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
可以对.git/config加上这个
[http]
postBuffer = 524288000
sslVerify = false
[https]
postBuffer = 524288000
sslVerify = false
然后要是提交后还是提示443, 可以多试几次就又可能成功了