[英]How to create two pull request from one fork in github
I have forked my repo from master branch and commited few changes and created one pull request.我从 master 分支 fork 了我的 repo 并提交了一些更改并创建了一个 pull request。 Now that pull request is not merged.
现在该拉取请求未合并。 Meanwhile i need to do some other changes and need to create one more pull request.
同时我需要做一些其他的改变,需要再创建一个拉取请求。
So to this this is what i have done.所以这就是我所做的。
Create new branch创建新分支
git checkout -b TPR-4356-DMS git 结帐-b TPR-4356-DMS
created upstream like this git remote add upstream http master main url from where i have forked像这样创建上游 git 远程添加上游http 主主 url 从哪里我已经分叉
Then added my changes commited and pushed 4.I can see my changes in my branch but when i create pull request i can see my older commits as well.然后添加我提交的更改并推送 4.我可以在我的分支中看到我的更改,但是当我创建拉取请求时,我也可以看到我的旧提交。
Please suggest what i am missing here?请建议我在这里缺少什么? Am i creating upstream correctly?
我是否正确创建上游?
Check if your second branch was not created on top of the first one.检查您的第二个分支是否不是在第一个分支之上创建的。 You can view this with this command:
您可以使用以下命令查看:
git log --graph --pretty=oneline --abbrev-commit
It will show to you a tree of your branches.它会向你展示你的树枝树。
Here is the steps这是步骤
git checkout -b TPR-4356-DMS
git remote add upstream yourmaster repo
git fetch upstream
git reset --hard upstream/master
git push origin TPR-4356-DMS:TPR-4356-DMS
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.