简体   繁体   中英

Github Pull Request from Develop branch to Master branch shows previous commits .How can I avoid such issues?

We have branches like: feature/branch , develop and master

When I have created a PR from feature/branch to develop , I see only one commit and only changes to my files in the feature/branch which is good and have merged into develop branch

Then for some reason when I have created a PR from develop --> master . It shows a whole list of previous commits and changes even if I've made only a single line change in develop

How do I resolve such issues and avoid having such in every Pull request

I have avoided such issues by avoiding Squash and Merge in the GitHub. And Have rebased the feature branch with git pull --rebase origin

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM