Background
Hi, I am working on a local function branch. This local branch has messed up with many small commits. Before I push the branch on the remote, I would like to put in order.
For this, I would do an interactive rebase:
git rebase -i
There are no problems so far.
Problem
Now the tricky part here: During the development of the function, I did several refactoring, including renaming and moving files. History of renamed files is available due to their renaming:
git -mv
But when I crush the commits before and after renaming, the story goes away, and git notifies about the changes like deleting and adding a file.
What is the problem?
How can I perform squash, including renaming without losing file history?
source share