Is it safe to rebase
local (private) feature branch
, if it's already merged to master
, and I decide to tweak the feature later by rebasing
the feature branch
on the current tip of master
? I know it's death sentence to rebase
a shared branch, but is it safe in this case, as long as branch itself is private? As far as I can see, rebasing
in this scenario will only add those diverged changes in master
on top of the common history plus some local changes of the branch totally private to me. So no harm should be done, right? Is there any special scenarios, where this pattern would cause problems?
EDIT
One concern to think about is, if I perform interactive rebase
on a feature branch to clean up the commit history, for example
git rebase -i HEAD~3
and this branch has already been merged to master, then both branches introduces same changes with different commits right? And this of course is not desired.