git - git - 尝试选择我已经拥有的提交后自动 git reset
问题描述
我正在尝试git cherry-pick start..end
,并且我已经提交了很多提交,start..end
并且每次尝试选择一个时,我都会收到这样的消息:
On branch master
Your branch is ahead of 'origin/master' by 9 commits.
(use "git push" to publish your local commits)
You are currently cherry-picking commit e0a5d27bed8.
nothing to commit, working tree clean
The previous cherry-pick is now empty, possibly due to conflict resolution.
If you wish to commit it anyway, use:
git commit --allow-empty
If you wish to skip this commit, use:
git reset
Then "git cherry-pick --continue" will resume cherry-picking
the remaining commits.
我试过rev-list
这样使用:git rev-list --remove-empty --reverse start..end . | git cherry-pick --stdin
添加--remove-empty
和 a.
但这无济于事。
有没有办法跳过这些类型的提交?
解决方案
推荐阅读
- zip - 通过偏移量在 ZIP 文件中定位 EOCD
- sql - SQL 中的这种点表示法是如何工作的?
- python - 如何处理 os.stat() 权限问题?(Python 2.7)
- java - 大家好。我在 Main 类中有 getUserData 方法。我想从主类调用这个方法。谁能帮我?
- bit-manipulation - 检查第 i 位的差异
- r - 从 JSON 输入过滤数据帧
- google-sheets-api - 是否可以仅使用 API 密钥读取谷歌表格*元数据*?
- python - 如何解决“-bash: aws: command not found” awscli 错误?
- java - 多键 -> 值映射的配置文件选项
- reactjs - 如何从另一个组件重新获取 graphql 查询?