我对比诺克斯/比蜘蛛进行了分叉,并制作了一些change.Today,我发现了一个bug,希望向所有者提交一个修复程序。
我现在有4个提交文件,最后一次提交包含两个文件(一个文件用于修复bug,一个文件是我编辑的)。
我找到了最容易理解的方法,约翰·纳格尔。
但我有个错误:
mithril@KASIM /E/Project/pyspider (master)
$ git checkout pullrequest
Switched to branch 'pullrequest'
mithril@KASIM /E/Project/pyspider (pullrequest)
$ git pull https://github.com/binux/pyspider.git
From https://github.com/binux/pyspider
* branch HEAD -> FETCH_HEAD
Already up-to-date.
mithril@KASIM /E/Project/pyspider (pullrequest)
$ git branch
master
* pullrequest
$ git cherry-pick 6b8fc09133b11ff8f243cdcf90fa559ee9cf4f26
error: could not apply 6b8fc09... fix pymongo dump error
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'
mithril@KASIM /E/Project/pyspider (pullrequest|CHERRY-PICKING)
$ git diff
diff --cc pyspider/scheduler/scheduler.py
index 48a7888,a2f5aaf..0000000
--- a/pyspider/scheduler/scheduler.py
+++ b/pyspider/scheduler/scheduler.py我在我的py蜘蛛克隆文件夹下运行这个命令,是错的吗?这是否意味着我必须还原scheduler.py的更改,并在切换到主分支后将它们添加回?我能不能在不影响pyspider/webui/result.py的情况下将它添加到拉请求分支中?
我应该转到一个新文件夹来创建并获得这个新分支吗?我对git不太熟悉,我担心我会做错事。
发布于 2015-10-20 07:30:21
现在我知道Git非常强大:
SHA key创建分支(每个提交都有一个唯一的键)我提出了我的第一个请求,感觉很好。
https://stackoverflow.com/questions/32085489
复制相似问题