git remote log error

使用git pull的时候收到以下信息:

error: there are still refs under ‘refs/remotes/origin/xxxx‘
From 10.1.25.57:yyyy/zzzz_server
 ! [new branch]      xxxxx     -> origin/xxx  (unable to update local ref)

百度了很久,(因为百度很烂)。

才看到了一个解决方案:

1. git remote show origin

使用这个命令,发现了stale 的remote 分支

2. git remote prune origin

干掉一些雍余的远程分支

可以正常pull了

经过询问,是某位同事,对远程的分支,进行了删除和重新添加操作(!!!)。

时间: 2024-08-03 00:41:24

git remote log error的相关文章

解决Jenkins上git出现的“ERROR: Error fetching remote repo 'origin'”问题

今天对清掉了Jenkins中项目的工作空间,结果构建出现“ERROR: Error fetching remote repo 'origin'”问题:网上各种找也没找到解决这个问题的方法. 后来看错误之前是“> git.exe config --local --remove-section credential # timeout=10”,不会是跟密码有关吧! 于是将url改成http://用户名:密码@ip/的格式,git配置改成不使用密码,结果OK了. 解决Jenkins上git出现的"

To ssh://xxx.com:8022/test/project.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'ssh://xxx.com:8022/test/project.git'

To ssh://xxx.com:8022/test/project.git ! [remote rejected] master -> master (pre-receive hook declined)error: failed to push some refs to 'ssh://xxx.com:8022/test/project.git' 权限问题,项目创建者权限不够,需要maintainer或者owner 权限的人才能提交数据,提交完成后,可以修改项目的权限,打开以下路径projec

Git:错误:error:src refspec master does not match any

新建立了一个远程仓库,想着把项目放上去.于是在项目目录上: git init 然后就添加远程库 git remote add origin xxxx.git 然后就想push: git push -u origin master 结果提示错误: error:src refspec master does not match any 百度下,原来是说我本地没有提交任何东西,本地版本库为空, 空目录不能提交 (只进行了init, 没有add和commit). 解决: 添加:git add -A 提交

[git 学习篇] git remote add origin错误

http://blog.csdn.net/dengjianqiang2011/article/details/9260435 如果输入$ Git remote add origin [email protected]:djqiang(github帐号名)/gitdemo(项目名).git 提示出错信息:fatal: remote origin already exists. 解决办法如下: 1.先输入$ git remote rm origin 2.再输入$ git remote add ori

[Git] git remote

命令 git remote 语法 git remote [-v | --verbose] git remote add [-t <branch>] [-m <master>] [-f] [--[no-]tags] [--mirror=<fetch|push>] <name> <url> git remote rename <old> <new> git remote remove <name> git remo

解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists).

Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists). 2017年02月22日 20:38:28 阅读数:19178 Git fetch和git pull的区别: 都可以从远程获取最新版本到本地 1.Git fetch:只是从远程获取最新版本到本地,不会merge(合并) $:git fetch origin master //从远程的origin的master主分支

Git学习篇之git remote add origin错误

提示出错信息:fatal: remote origin already exists. 解决办法如下: 1.先输入$ git remote rm origin 2.再输入$ git remote add origin git@github.com:djqiang/gitdemo.git 就不会报错了! 3.如果输入$ git remote rm origin 还是报错的话,error: Could not remove config section 'remote.origin'. 我们需要修改

解决git提交问题error: The requested URL returned error: 403 Forbidden while accessing

git提交代码时,出现这个错误"error: The requested URL returned error: 403 Forbidden while accessing https" 解决方法: 编辑.git文件夹下的config文件就可以. vim .git/config #改动对于的配置 #原来的url = https://github.com/elitecodegroovy/PhoenixC.git url = https://[email protected]/elitec

Cannot run program “git.exe”: createprocess error=2,系统找不到指定的文件

Android Studio提供VCS(Version Control System)版本控制系统,默认情况使用Git.GitHub工具需要配置git.exe路径,否则提示“cannot run program git.exe createprocess error=2 系统找不到指定的文件”的错误,如下图: 点击查看详情