首页 > 其他分享 >fatal: couldn't find remote ref master问题的解决

fatal: couldn't find remote ref master问题的解决

时间:2023-04-29 18:12:37浏览次数:36  
标签:main remote couldn master fatal ref find

问题描述

在写入决定合并并不相关的分支的代码之后,就又出现了这个报错,就很离谱,麻了呀家人们!

问题解决

git pull origin master --allow-unrelated-histories,这个命令执行错误,是因为,我这里的分支名称不叫作master,叫做main

旧版默认为master;新版改成main啦!

各位注意嘞!

标签:main,remote,couldn,master,fatal,ref,find
From: https://www.cnblogs.com/liuzijin/p/17364295.html

相关文章

  • 关于sap-hana-数据库-在pacemaker集群中迁移主控节点-master节点
    环境介绍,hana数据库的两个节点:azphxxxdb01azphxxxdb02目前master位于azphxxxdb02,现在需要切换回azphxxxdb01 需要确保Pacemaker没有任何失败的操作(通过pcs状态检查)、没有任何意外的位置约束(例如迁移测试的遗留内容),并且HANA处于同步状态,例如,使用systemReplicationStat......
  • Deep-Learning-Based Spatio-Temporal-Spectral Integrated Fusion of Heterogeneous
    Deep-Learning-BasedSpatio-Temporal-SpectralIntegratedFusionofHeterogeneousRemoteSensingImagesabstract为了解决STF中的生成heterogeneousimages问题:为此,本文首次提出了一种基于新型深度残差循环生成对抗网络(GAN)的异构集成框架。所提出的网络由前向融合部......
  • Spatiotemporal Remote Sensing Image Fusion Using Multiscale Two-Stream Convoluti
    SpatiotemporalRemoteSensingImageFusionUsingMultiscaleTwo-StreamConvolutionalNeuralNetworksabstract地表反射率图像的渐变和突变是现有STF方法的主要挑战。(Gradualandabruptchangesinlandsurfacereflectanceimagesarethemainchallengesinexisting......
  • git提交本地master分支到远程main分支
    可以使用以下命令将本地master分支提交到远程main分支:首先,需要将本地master分支与远程存储库进行同步。可以使用以下命令将更新的数据从远程存储库拉取到本地:gitfetchorigin切换到本地master分支:gitcheckoutmaster将本地master分支合并到主分支main:g......
  • k8s-问题:[root@master log]# kubectl get node The connection to the server 192.168
    记一次测试虚拟机异常关机导致的问题[root@masterlog]#kubectlgetnodeTheconnectiontotheserver192.168.0.105:6443wasrefused-didyouspecifytherighthostorport?这个问题网上的大部分解决方案是kubeadminit直接这么搞我相信肯定能恢复,毕竟是重新初始化,但......
  • git执行push操作时报错:remote: xxx: Incorrect username or password (access token)
    问题:最近用gitpush项目到gitee时报错,提示信息如下:remote:xxx:Incorrectusernameorpassword(accesstoken)fatal:Authenticationfailedfor'https://gitee.com/xxx/xxx.git/'想了一下,原来是几天前我把gitee的密码给改了,所以原先git存留的密码就失效了解决方案清......
  • 怎么修改Git remote add时使用的远程仓库?
    评:[email protected]:Liutos/foobar.gitwuyuntao我刚刚找到了办法,就是直接修改.git/config文件了,居然成功了,不过还是谢谢你的建议,之前一直失败,原来是gitremoterm的参数写错了~......
  • Git 的origin和master分析
    评:<<关键是中英文切换着打字太辛苦了转载请注明出处>>首先要明确一点,对git的操作是围绕3个大的步骤来展开的(其实几乎所有的SCM都是这样)1.从git取数据(gitclone)2.改动代码3.将改动传回git(gitpush)这3个步骤又涉及到两个repository,一个是remoterepository,再远程服务......
  • git remote用法总结
    评:gitremotegitremote不带参数,列出已经存在的远程分支,例如:#gitremoteorigin_appsgitremote-v|--verbose列出详细信息,在每一个名字后面列出其远程url,例如:#gitremote-vorigin_appsgitolite@scm:apps/Welcome.git(fetch)origin_appsgitolite@scm:apps/W......
  • pyenv-win-master\pyenv-win\libexec\pyenv-install.vbs(161, 5) Microsoft VBScri
    Windows10运行pyenvinstall3.11.2提示pyenv-win-master\pyenv-win\libexec\pyenv-install.vbs(161,5)MicrosoftVBScript运行时错误:文件未找到解决问题C:\Users\larry>pyenv--versionpyenv3.1.1C:\Users\larry>pyenvinstall3.11.2::[Info]:: Mirror:http......