问题
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