Backround
Hi, I'm working on a local feature branch. This local branch is messed up with lots of small commits. Before pushing the branch to the remote I would like to tidy things up.
For this I'd do a interactively rebase:
git rebase -i
No problem so far.
Problem
Now here's the difficult part: During the development of the feature I've done several refactorings including renames and moves of files. The history of the renamed files are available, due to renaming them with:
git -mv
But when I squash the commits before and after the rename-commits, the history is gone and git notifies the changes as deletion and addition of a file.
What is the Problem?
How can I squash commits including rename without loosing file history?
git mv
actually doesn't tell git to keep the history of a file, instead it just renames the file and later it auto detects that the file has been renamed? In other words: there is no possibility to do what I wanted? The only possibility is to do the rename in a separate commit. – Tanya