by shane_kerns · 2y ago · 0 comments
The solution would be to pull upstream changes (so you know what you are potentially pushing your changes into) and then push.
A rebase is never required in Git. (people/maintainers may disagre) but a merge will always do.
Having said that. In your scenario provided, a pull + merge/rebase will be required. It will then resolve automatically, and without conflicts. But a human has to be involved to provide a strict sequence/dag of the those commits.