这里是我 - 我的代码一个混帐回购协议:如何更改git历史记录中的文件路径?
projects
|-proj1 (no git repo here yet)
|-subproj1 <- current git repo here
这里是我想要的东西 - 一个git回购这是目前跟踪新项目,使用我的代码:
projects
|-proj1 <-git repo moved to here, but still tracking files in subproj1
|-subproj1 (no git repo here)
我想保持历史记录不变,因此新的存储库将引用比原始文件更深一级的文件。什么是最痛苦的方式来做到这一点?
我正在尝试做类似的事情,并注意到我的临时索引文件没有写入(https://gist.github.com/60d14f45a0b2fb98e641)。会有什么合理的理由说明临时指数没有被写入? – 2010-09-06 05:41:19
sed命令似乎是flakey;我没有得到预期的结果。 – mxcl 2011-10-11 16:53:32
我也遇到了sed命令的问题。作为分隔符的'-'是不常见的,并且对名称中带有连字符的目录不可用。我使用:'sed“s#\ t \”*#&sub-proj1 /#“' – 2014-12-08 10:19:24