I'm trying to rename a directory that was introduced six commits ago and in all subsequent commits. These commits have not been pushed.
What have I tried?
- I've tried using git filter-branchwith anmv old newcommand, but this fails on commits beforeHEAD~6because the directory doesn't exist.
- I've tried git rebase -i HEAD~6, editing each commit, but I can't usemv old newbecause git's locking the file, nor can I rename it in Windows Explorer.
- I've tried the same rebase with cp -R old new; rm -rf old; git add newbut this creates merge conflicts onHEAD~4and above.
It may be worth noting that the commit on which this directory was introduced is the first commit in this branch (the branch is six commits ahead of master) and that I haven't touched master since I branched out.
I've also read this question.
What's the best way to do this?
 
     
     
     
    