git cherry-check error "fatal: bad object"
2015-09-06 22:26
561 查看
原因是local的branch上没有那个SHA1.
那个SHA1是另一个branch上,需要更新local branch.
方法1:
repo sync 本地branch,这样本地的是latest
以下来自于
http://stackoverflow.com/questions/13788945/how-to-cherry-pick-from-a-remote-branch
方法2:
- git checkout branch-a
- git pull origin branch-a
- git checkout branch-b
- git pull origin branch-b
- git cherry-pick <hash>
(branch-a 另一个branch. branch-b本地)
方法3:
# fetch just the one remote
git fetch <remote>
# or fetch from all remotes git fetch --all
# make sure you're back on the branch you want to cherry-pick to
git cherry-pick xyz
git用法参考
http://www.open-open.com/lib/view/open1328069889514.html
那个SHA1是另一个branch上,需要更新local branch.
方法1:
repo sync 本地branch,这样本地的是latest
以下来自于
http://stackoverflow.com/questions/13788945/how-to-cherry-pick-from-a-remote-branch
方法2:
- git checkout branch-a
- git pull origin branch-a
- git checkout branch-b
- git pull origin branch-b
- git cherry-pick <hash>
(branch-a 另一个branch. branch-b本地)
方法3:
# fetch just the one remote
git fetch <remote>
# or fetch from all remotes git fetch --all
# make sure you're back on the branch you want to cherry-pick to
git cherry-pick xyz
git用法参考
http://www.open-open.com/lib/view/open1328069889514.html
相关文章推荐
- JavaScript之Object
- [Objective-C]getter和setter方法
- Objective-C类别(Category),分类
- python-selenium Page Object设计模式
- ios object-c errno
- javascript Object Pool 对象池
- JAVA Object 类简介
- Objective-C Runtime 运行时整理
- Objective C运行时(runtime)技术总结,好强大的runtime
- JSONObject 包的依赖
- Objective-C 内存管理2
- Objective-C 数组NSArray
- iOS开发Objective-C 语言变量的作用域
- Objective-C Block一步一步分析
- 《A Fragment-Based Approach to Object Representation and Classifiacation》阅读翻译
- Android属性动画完全解析(中),ValueAnimator和ObjectAnimator的高级用法
- Effective Java 英文 第二版 读书笔记 Item 5:Avoid creating unnecessary objects.
- Objective-C Runtime 运行时:成员变量(ivars)及属性
- 常见问题总结篇二、 对Autolayout VFL(Visual Format Language) 的扩展
- openstack kilo compute更新后报错IncompatibleObjectVersion: Version 1.2 of PciDeviceList is not supported