git strategy when sharing work in progress with another developer

Viewed 32

I have some repo with code, and there is a mymaster branch.

There is another developer that is doing work locally in his myfeature branch (which starts from the mymaster branch)

He has pushed his work to the repo and I could see that some things need a correction.

So I created a local branch mycorrection in which I corrected some parts of the code.

Now, I have not finished yet but I would like he to see the modifications so far , so that he is aware of this.

What is the best git strategy to do this?


I have thought of pushing mycorrection to the repo and make him fetch that branch to his own local repo. However I will keep commiting to this branch so I am not sure if this is the best approach. In the end I will merge mycorrection to mymaster so how would that impact his work?

0 Answers
Related