I've read that it's never recommended to re-base a branch which is made publicly available. But let's say I have master which everyone is working on and my_feature where only I am working on it (but is also pushed to a remote repo). Say I want to merge my_feature into master, so I checkout my_feature first, do git rebase master, then switch to master and do git merge my_feature. 
Is this safe to do since many people have made plenty of commits and are heavily collaborating on the master branch (but almost nobody on the new_feature branch)?