Prevent TFS from adding new commits to open pull request?

半腔热情 提交于 2020-01-06 02:27:17

问题


I have a git repository in my TFS 2013 server.

I created a Pull Request 5 days ago, from my personal branch to the shared 'develop' branch.

Since then, I've continued developing on other features, and pushed the commits to my branch on the server. I'm not ready to merge these into the develop branch yet.

The pull request hasn't been approved yet, but now shows all of my subsequent commits being included in the pull request.

How do I stop TFS doing this?

(from other questions, like this one: github: Adding commits to existing pull request other git hosts behave like I'm expecting - you need to specifically try to add a commit to a pull request).

Thanks


回答1:


You had an expected behavior of Pull Request. If you don't want to add new commits to open pull request, you can create another topic branch for your personal branch.



来源:https://stackoverflow.com/questions/33772382/prevent-tfs-from-adding-new-commits-to-open-pull-request

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!