How do I change a file's path in git's history?
Posted
by carleeto
on Stack Overflow
See other posts from Stack Overflow
or by carleeto
Published on 2010-06-17T02:40:20Z
Indexed on
2010/06/17
2:42 UTC
Read the original article
Hit count: 281
Here is what I have - a git repo of my code:
projects
|-proj1 (no git repo here yet)
|-subproj1 <- current git repo here
Here is what I want - a git repo which is now tracking a new project that uses my code:
projects
|-proj1 <-git repo moved to here, but still tracking files in subproj1
|-subproj1 (no git repo here)
I'd like to keep the history intact and therefore the new repository will be referring to files that are one level deeper than the original. What is the most pain free way to do this?
© Stack Overflow or respective owner