Not nearly to the same extent, though. It's easy to move your repo over to GitLab or Savannah or something if need be.
Except when folks use the github url of their repository as their homepage I guess.
it's not git thats valuable, it's all the social interactions around it - your issues, discussions, actions would be very hard to move. Github is only releasing more vendor lock in features as time goes on.