i'm a git newbie and i'm having difficulties with merging.
Using git-flow, we have a master and a develop branch. Each feature we develop has a proper branch ( let's call it DEV-738 ).
While i develop my feature, another developer works on another branch ( let's call it DEV-750 ) and when their feature is finished it goes into develop.
I use to merge develop into feature branch, so when my feature will be completed ( i worked on it for about 4 months ) i'm going to encounter less problems. Unfortunately, merging develop into my feature branch causes some issues. I' ve spent 4 days refactoring a function using async/await, and other improvements, and when i've merge develop into my branch my refactor vanished, restoring the old version of the function.
What can I do to prevent issues of this kind in future ?
Thanks