Your configuration specifies to merge with the ref 'br03' from the remote, but no such ref was fetch
2017-03-15 10:13
1376 查看
Git远程05:远程分支的删除与同步
删除远程分支命令:1 | $ git push origin :br03 |
1 | $ git push origin --delete br03 |
git fetch并不能同步获取到br03分支被删除。
1 | $ git fetch |
但执行
git pull时,报错。
12 | $ git pull Your configuration specifies to merge with the ref 'br03' from the remote, but no such ref was fetched. |
12 | $ git fetch origin br03 fatal: Couldn't find remote ref br03 fatal: The remote end hung up unexpectedly |
12 | $ git br -a |
remotes/origin/*这些远程跟踪分支,仅仅是远程分支的一个缓存,并且,不能通过
git fetch命令获取到分支删除的更新。
执行命令
12 | $ git remote show origin * remote origin Fetch URL: git@github0123:jeremy0123/fetch.git Push URL: git@github0123:jeremy0123/fetch.git HEAD branch: master Remote branches: br01-remote tracked br02 tracked br03-remote tracked master tracked refs/remotes/origin/br03 stale (use 'git remote prune' to remove) Local branches configured for 'git pull': br01 merges with remote br01-remote br03 merges with remote br03 master merges with remote master Local refs configured for 'git push': br02 pushes to br02 (up to date) master pushes to master (local out of date) |
refs/remotes/origin/br03状态是stale(陈旧的),并且后面有命令提示。
12 | $ git remote prune origin Pruning origin URL: git@github0123:jeremy0123/fetch.git * [pruned] origin/br03 |
12 | $ git fetch -p remote: Counting objects: 5, done. remote: Total 3 (delta 0), reused 0 (delta 0) Unpacking objects: 100% (3/3), done. From git@github0123:jeremy0123/fetch.git 04a6837..d49d143 master -> origin/master x [deleted] (none) -> origin/br03 |
总结:
如果本地是最新的,那么:
1.git fetch -p
2.git push origin banshuV1.3.5 && git branch --set-upstream-to=origin/banshuV1.3.5 banshuV1.3.5
~~ EOF ~~
相关文章推荐
- Your configuration specifies to merge with the ref 'refs/heads/master' from the remote, but no such
- Your configuration specifies to merge with the ref 'refs/heads/master' from the remote, but no such
- cas错误:org.jasig.cas.client.validation.TicketValidationException: No principal was found in the response from the CAS server.
- Cocoa编程错误问题:loaded the XX nib but no view was set.
- Your build settings specify a provisioning profile with the UUID, no such provisioning profile was found的解决方案
- Your build settings specify a provisioning profile with the UUID “”, however, no such provisioning profile was found
- CAS TGT 校验不成功:No principal was found in the response from the CAS server.WHO: audit:unknown
- [UIViewController _loadViewFromNibNamed:bundle:] loaded the "XXX.xib" nib but the view outlet was no
- contains dots but no replacement was configured!Make sure map keys don't contain dots in the first p
- You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgrou
- No such file or directory? But the file exists!
- 更换免开发证书账号出现的Your build settings specify a provisioning profile with the UUID"",however,no such provisioning profile was found
- Xcode报错:“Your build settings specify a provisioning profile with the UUID..... however, no such provisioning profile was found”
- 报错:No principal was found in the response from the CAS server
- 错误代码:Your build settings specify a provisioning profile with the UUID “”, however, no such provisioning profile was found
- loaded the "XXXView" nib but the view outlet was not set 解决方案
- ReactJs 报错 Element type is invalid: expected a string (from built-in components) or a class/function (for composite components) but got: undefined. Check the render method of `Me`.
- Unable to build: the file dx.jar was not loaded from the SDK folder!
- A potentially dangerous Request.Form value was detected from the client
- Eclipse报错显示Unable to build: the file dx.jar was not loaded from the SDK folder