git will not detect a combination of truly significant changes and simultaneous movement as a rename, as you have discovered.
Itβs clear that git detects commit changes every time you look at the history by comparing the contents of commit with its parent commit. It may seem too simple, but it turns out that it is a good view.
So you need to insert a new commit, rename which is git log, etc. can detect as such, followed by the rest of the story that you have accumulated since then, and this means a new story for your branch, i.e. relocation or cherry.
So:
And you are finished, unless some other repositories have gotten a corrupted story by extracting or clicking or cloning, then you have to force push or force these repo owners to force redial (and any subsequent history that they built on top of that, so you really don't want to publish too soon).
source share