For example, I'm dealing with feature branch, another developer pushed just right now to origin/develop his latest fix, and I have to use (add) his fix in my feature branch.
how I should do it ?
git checkout -b my-feature-branch
... dealing with my issue ...
... alarm! another developer just released his fix, I need it here in my feature branch ...
git stash
git checkout develop
git pull origin develop
git rebase my-feature-branch develop
git checkout my-feature-branch
git merge develop
git stash apply
... dealing with my issue ...
git commit
git checkout develop
git merge my-feature-develop
git push origin develop
Is it correct behaviour ?
In that case very hard to figure out where my branch was started and where were finished.
And second point I'm doing rebase
for public branch (develop) and it's not good, right ?
What the proper way to update (refresh) working branch with new info ?