首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • Git——报错总结

    前言 git相关的报错汇总 错误汇总 上传文件需要密码 问题原因 1. 全局初始化是未添加邮箱 2. . $ git remote -v //查看远程仓库 $ git remote remove xxx //移除 $ git remote add xx git@gitee.com:xxxxxxx/xxx.git //重新添加远程地址 fatal: refusing to merge unrelated histories 问题原因 合并时报错提示拒绝合并不相关的历史 解决方案 git merge origin 拉取远程仓库到本地,重新建立 git pull <local-name> <remote-name> git add . git commit -m "xxx" git push <local-name> <local_branch_name>:<remote_branch_name> 3. $ git branch

    29610编辑于 2024-08-16
  • 来自专栏程序手艺人

    Git Push 提交报错

    Total 14 (delta 11), reused 0 (delta 0) remote: Resolving deltas: 100% (11/11) remote: Processing changes

    1.1K30发布于 2019-02-20
  • 来自专栏达达前端

    解决Git - git push origin master 报错

    原因:github仓库中没有README.md文件 解决如下: 重新输入git push -f 或者 git pull --rebase origin master  git push -u origin master 错误提示如下: [root@linux1 php]# git push -u origin master hint: See the 'Note about fast-forwards' in 'git push --help' for details.

    46830编辑于 2022-04-29
  • 来自专栏前端小叙

    git statsh命令报错解决

    git stash命令主要用于当在一个分支的开发工作未完成,却又要切换到另外一个分支进行开发的时候,除了commit原分支的代码改动的方法外,提供暂存代码的方式。 git stash命令参考这篇:https://blog.csdn.net/c_z_w/article/details/52862129 如文中所说,在存stash的时候没有加 -a,则新增加的文件不能存为 stash,最后修改完另一个分支切换回来之后,使用 git stash pop 命令或者 git stash apply命令恢复内容的时候,发现报错: src/components/Details.vue 这是由于新增加的文件没有存stash导致的,这时需要查看 git status,有几个待提交的新增加文件, git add . git commit -m "xxx" git push 提交之后,则可以正常 git stash pop

    2.4K80发布于 2018-04-12
  • 来自专栏全栈程序员必看

    pytest报错_git是什么

    前言 我们每天写完自动化用例后都会提交到 git 仓库,随着用例的增多,为了保证仓库代码的干净,当有用例新增的时候,我们希望只运行新增的未提交 git 仓库的用例。 pytest-picked 插件可以实现只运行未提交到git仓库的代码。 仓库的用例里面新增了 1 个文件 test_new.py cd到项目根目录,使用git status查看当前分支状态 > git status On branch master Your branch 文件的2个状态 untrack 没加到git里面的新文件 unstaged staged:暂存状态, unstage就是未暂存状态,也就是没git add 过的文件 先弄清楚什么是 untrack 状态,当我们 pycharm 打开 git 项目,新增一个文件的时候,会弹出询问框:是否加到 git 文件 如果选择是,文件会变绿色,也就是 unstage 状态(没git add 过);选择否

    35530编辑于 2022-09-16
  • 来自专栏云技术分享

    Gitgit clone报错 git fatal: Unable to find remote helper for https

    【参考资料】 https://stackoverflow.com/questions/8329485/unable-to-find-remote-helper-for-https-during-git-clone 问题现象: git clone https://xxxxx 报错git fatal: Unable to find remote helper for 'https' 一般都是因为缺少了 curl-devel 所以,可以先安装 curl-devel,然后重新编译安装git $ yum install curl-devel $ # cd to wherever the source for git is $ cd /usr/local/src/git-1.7.9 $ . /configure $ make $ make install 上述操作完成后,即可正常 git clone https://……

    2.7K10发布于 2021-01-28
  • 来自专栏ISP图像处理相关

    Git无法push提示报错443

    今天在使用git push到github的时候遇到了这样的错误,提示 OpenSSL SSL_connect: Connection was reset in connection to github.com :443 报错提示 可能是电脑使用的代理服务器,在cmd 执行命令,刷新dns 缓存试试 ipconfig/flushdns 可以在电脑设置里找到网络代理,在cmd 执行命令,刷新dns 缓存试试 ipconfig /flushdns 可以在电脑设置里找到网络代理关闭代理,或者输入命令关闭代理 git --config --unset https.proxy

    1.6K20编辑于 2022-01-14
  • 来自专栏王天的进阶之路

    git 首次提交远端仓库报错

    # 场景 执行后 git add . 、git commit 也设置了远端仓库地址,最后推送远端仓库报错,如下: # 问题原因: 云端仓库已存在内容,当前分支的最新提交落后于远程仓库的提交历史。 # 如何解决? 强制推送,使用 --force git push -force -u origin "master"

    24720编辑于 2023-10-18
  • 来自专栏散尽浮华

    git review报错一例

    在线上修改代码,最后使用git review提交代码审核的时候出现报错如下: [wangshibo@115~]$ vim testfile           #修改代码 [wangshibo@115~ ]$ git add testfile [wangshibo@115~]$ git commit -m "123" [wangshibo@115~ ]$ git review Errors running 解决办法: [wangshibo@115~]$ git review -v 2016-07-19 15:37:49.838087 Running: git log --color=never --oneline HEAD^1..HEAD 2016-07-19 15:37:49.841756 Running: git remote 2016-07-19 15:37:49.844743 Running: git : git rebase -i remotes/gerrit/master Errors running git rebase -i remotes/gerrit/master Interactive

    99970发布于 2018-01-22
  • 来自专栏编程微刊

    git报错-fatal: HttpRequestException encountered.

    在把本地项目上传至svn的时候,会出现这样的错误 lenovo@DESKTOP-K3LPGHL MINGW64 /d/mint (master) $ git push -u origin master int.git denied. fatal: Authentication failed for 'https://github.com/wangxiaoting666/mint.git/' 更新Windows的git 凭证管理器 点击下载安装 GCMW-1.14.0.exe 下载链接 https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases

    20400编辑于 2025-05-18
  • 来自专栏编程微刊

    git报错-fatal: HttpRequestException encountered.

    在把本地项目上传至svn的时候,会出现这样的错误 lenovo@DESKTOP-K3LPGHL MINGW64 /d/mint (master) $ git push -u origin master int.git denied. fatal: Authentication failed for 'https://github.com/wangxiaoting666/mint.git/' ? 更新Windows的git凭证管理器 点击下载安装 GCMW-1.14.0.exe 下载链接 https://github.com/Microsoft/Git-Credential-Manager-for-Windows

    2K50发布于 2019-05-14
  • 来自专栏运维专栏

    git clone报错SSL connect error

    我的小伙伴在操作Git时,发现无法执行git pull命令,提示找不到Git组件。在这篇文章中,我会详细介绍我们是如何定位和解决这个问题的。 问题描述在一个已经很久没有更新的CentOS 6.6服务器上,发现执行git pull时,提示Git组件丢失。通过which git或whereis git命令确认,Git确实不存在了。 不清楚是什么导致Git被删除或损坏的。为了恢复Git功能,执行了安装Git的操作。但是,就在我们以为问题解决后,git pull时遇到了新的问题:SSL连接错误。 故障排查第一步:确认Git组件丢失which gitwhereis git以上命令均未返回Git的安装路径,证实Git组件不在系统中。 第二步:安装Gityum install git -y这个命令执行成功后,Git被重新安装回系统。第三步:尝试使用Git执行git pull后,报出SSL连接错误。

    62441编辑于 2023-11-16
  • 来自专栏韩曙亮的移动开发专栏

    【错误记录】Git 使用报错 ( git: ‘switch‘ is not a git command. See ‘git --help‘. )

    文章目录 一、报错信息 二、解决方案 一、报错信息 ---- 执行 git switch -c feature1 命令 , 创建分支 , 报如下错误 : D:\Git\git-learning-course >git switch -c feature1 git: 'switch' is not a git command. 二、解决方案 ---- git switch 命令是 2.23 版本中新加入的命令 , 使用 git --version 命令 , 查询当前的版本 , 2.22.0 版本 ; 执行 git update-git-for-windows 命令 , 升级当前的 Git 版本 , 如果是 2.17 之前的版本, 需要使用 git update 命令 , 升级 Git 软件版本 ; 备选方案 ://github.com/git-for-windows/git/releases/download/v2.34.1.windows.1/Git-2.34.1-64-bit.exe

    1.2K20编辑于 2023-03-30
  • 来自专栏kangvcar

    Git - git push origin master 报错的解决方法

    git push origin master 报错的解决方法 错误提示如下 123456789 [root@linux1 php]# git push -u origin master To git@ github.com:kangvcar/Results-Systems--PHP.git ! (the 'simple' mode was introduced in Git 1.7.11. To git@github.com:kangvcar/Results-Systems--PHP.git + fbe05e8...70b187d master -> master (forced update @linux1 qimo]# git push -u origin master

    1.1K30发布于 2018-07-06
  • 来自专栏泰斗贤若如

    Git报错解决:git@gitee.com: Permission denied (publickey).

    Git报错解决:git@gitee.com: Permission denied (publickey). 完整报错信息 ? 报错原因 我查了很多资料,最后判定是在本地(或服务器上)没有生成SSH公钥 解决方法 第一步 当你没有SSH公钥的时候,在Terminal中输入下面的命令: ssh-keygen -t rsa -C " 第二步 继续在Terminal中输入如下命令: ssh -v git@github.com 复制代码 ?

    30.4K175发布于 2020-03-05
  • 来自专栏全栈程序员必看

    Oracle 11g安装报错

    1、报错: >>> Ignoring required pre-requisite failures. Continuing... 2、报错: [INS-32012]Unable to create directory:/data/oracle 此为权限不对,只需要给对应的权限即可。

    1.3K30编辑于 2022-09-15
  • 来自专栏自动化、性能测试

    Git 系列教程(11)- 分支简介

    前言 很多版本控制系统都有分支这个概念 使用分支意味着可以将日常工作从主线上脱离,从而避免影响主线 Git 鼓励在工作流程中频繁使用分支和合并 Git 是如何保存数据的 Git 保存的不是文件的变化或者差异 仓库中 (Git 使用 blob 对象来保存它们) 最终将校验和加入到暂存区域等待提交 git add README test.rb LICENSE git commit -m 'The initial commit of my project' 执行 git commit 后的步骤 Git 会先计算每一个子目录(本例中只有项目根目录)的校验和 然后在 Git 仓库中这些校验和保存为树对象 commit 两个指向相同提交历史的分支 Git 如何知道当前在哪一个分支上呢? 切换分支 两种方式 git checkout <分支名> git switch <分支名> git checkout testing 这样 HEAD 就指向 testing 了 ?

    47840发布于 2021-05-18
  • 来自专栏Crossin的编程教室

    Git11课】 远程仓库

    Git 的作用一方面在于对文件进行版本控制,更重要的是便于多人协作开发。因此只有本地仓库的 Git 算不上真正的 Git。而 GitHub 就是创建远程仓库的好地方。 加上 -v 可以看到更详细的信息: origin git@github.com:crossin/CrossinClass.git (fetch) origin git@github.com:crossin 而如果是一个在本地 git init 创建的仓库,刚开始时 git remote 是看不到任何信息的,因为它没有添加任何远程仓库。 想要添加一个远程仓库,可以用命令: git remote add [shortname] [url] 比如: git remote add myremote git@github.com:crossin 假如你要删除某个仓库,就使用 git remote rm 命令: git remote rm myremote 就可以把 myremote 这个远程仓库从列表中清除了。

    89570发布于 2018-04-16
  • 来自专栏OECOM

    git pull报错:There is no tracking information for the current branch

    当删除了本地的.git文件后,需要重新和远程仓库建立连接后才能继续更新和上传代码,一般情况下我们采用的步骤是: 1.git init 2.git remote add origin git地址 3 .git pull 有时候在pull这一步会报错,提示 There is no tracking information for the current branch. See git-pull(1) for details git pull <remote> <branch> If you wish to set tracking information for this branch you can do so with: git branch --set-upstream-to=origin/<branch> 是因为本地分支和远程分支没有建立联系 (使用git branch 上所以报错了,于是我们需要执行 git checkout master git branch --set-upstream-to=origin/master master git pull

    4K41发布于 2020-07-02
  • 来自专栏web前端记录

    git clone报错问题解决

    fatal: unable to access 'https://github.com/xxxx.git/': OpenSSL SSL_read: Connection was reset, errno 10054 如上报错,解决:打开Git命令页面,执行git命令脚本:修改设置,解除ssl验证 git config --global http.sslVerify "false" 又执行git clone 命令时,报错如下: fatal: unable to access 'https://github.com/xxxx.git/': Failed to connect to github.com port

    2.1K20发布于 2021-05-08
领券