git - 如何正确选择提交
问题描述
我必须从 issue-7044a 分支中挑选提交到 issue-7044 并且当我运行时
git cherry-pick <commit-hash>
我收到:
On branch issue-7044
Your branch is up to date with 'origin/issue-7044'.
You are currently cherry-picking commit <hash>.
(all conflicts fixed: run "git cherry-pick --continue")
(use "git cherry-pick --skip" to skip this patch)
(use "git cherry-pick --abort" to cancel the cherry-pick operation)
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
Otherwise, please use 'git cherry-pick --skip'
并且存储库文件夹没有变化,我该怎么办?(我需要从该提交中复制所有文件)
解决方案
这表示:
- 从 issue-7044a 中挑选的提交已经是 issue-7044 分支的一部分(例如通过合并)
- 或者该提交引入的更改已应用于目标分支
在这两种情况下,Git 都不需要应用任何东西。
推荐阅读
- apache - 如何禁用 SSL 证书验证
- python - 在 Python 3 中将字典列表转换为 CSV
- github - Github Wiki 作为主项目的子文件夹
- python - 基于索引列表的列表中的累积添加
- lines-of-code - CLOC - 如何使用 match-d 计算特定(唯一)目录中的 loc
- javascript - 获取每个请求的出价响应 [prebid.js]
- python - 将 GeoTiff 图像转换为代表 3 维三角形的 Python Shapely 多边形几何图形
- excel - 如何删除excel中数字上的隐藏引号,以防止更改格式
- javascript - 在运行回归测试时不断收到 TypeError: config.suite.split is not a function
- python - 如何检查数据框的列值是否相等并连接列索引值(如果相等)