首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >将修正提交给项目所有者

将修正提交给项目所有者
EN

Stack Overflow用户
提问于 2015-08-19 02:17:39
回答 1查看 118关注 0票数 2

我对比诺克斯/比蜘蛛进行了分叉,并制作了一些change.Today,我发现了一个bug,希望向所有者提交一个修复程序。

我现在有4个提交文件,最后一次提交包含两个文件(一个文件用于修复bug,一个文件是我编辑的)。

我找到了最容易理解的方法,约翰·纳格尔

但我有个错误:

代码语言:javascript
复制
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不太熟悉,我担心我会做错事。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-10-20 07:30:21

现在我知道Git非常强大:

  1. 创建一个新分支并进行更改,不会影响其他分支。
  2. 我可以用SHA key创建分支(每个提交都有一个唯一的键)

我提出了我的第一个请求,感觉很好。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32085489

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档