There is a feature-branch x, it has a commit on file A. And then a Pull Request is created.
Then master has a new update, on file B, C, D.
So feature branch has 1 commit behind master. But as feature and master work on different files, there will be no merge-conflict.
For such case, i usually merge master into feature branch, before i merge the PR.
The question is, is it a MUST-DO, to sync master to feature branch, before the PR is merged, if feature and master work on different files? AND WHAT IS THE BEST-PRACTICE?
And WITHOUT sync master to feature branch, after PR is merged, on master, A file should be changed as the commit from feature branch, and fild B, C, D will not be overwritten by feature branch and stay the same as they are on master?
In Bitbucket, by clicking the button Merge in bitbucket-GUI, there are 3 Options:
- Merge Commit
- Squash
- Fast forward
Please see this document of bitbucket, in bicbucket GUI, for that case, the 3rd Option "fast-forward" is not possible: https://community.atlassian.com/t5/Bitbucket-questions/What-happens-if-I-merge-a-PR-that-is-out-of-sync-from-master/qaq-p/1291041
But what about i just use the other button "merge commit" or "squash"? Will it still work?
Thank you.