Reputation: 15457
Here is my git workflow:
git rebase origin master
to pull latest into feature branch.git stash apply
to get my changes back. When I create a Pull Request to staging from my feature branch, for some reason the PR will include other commits that aren't mine.
Question 1: Does the workflow above look normal?
Question 2: Why am I getting extra commits in my PR to staging?
Upvotes: 0
Views: 923
Reputation: 44535
Stashing and reapply after rebasing should not be necessary. Instead, at point 4 you just should do a regular commit. After that you can rebase your commits.
That means, that somebody else is circumventing the process and merging changes to production without going through staging first. It could also be, that when the merge to production happens, actually a squash merge or another operation, which changes the history, is used, which would mean that on a commit level staging and production would be different (not necessarily on content side).
Upvotes: 2