how to change remove+add to move in git history -
I have a git repository which is a mix of some old SVN repo I when I mixed everything, then I just moved the files Instead of git mv was not realized, so now SVN history for most files has been lost. Is there a way to fix this?
The old structure was something like this:
svn1 | _apps / | _tests / | _... svn2 | _src | _libs svn3 | _src | _libs
and now:
root | _libs | | _svn1_name | | | _apps | | | _tests | | | _... | _addons | | | _svn2_name | | | | _src | | | | _libs | | | _svn3_name | | | | _src | | | | _libs
I have tried to checkout this MV in the previous command, doing GIT MV, creating a new branch and mastering it against the ribbing but the structure is complex and the merge is a pain An easy way to do this?
Generally delete one and add one when it was within the same commitment , Then GIT can quickly estimate that a nomenclature was made and rename it to git log
is appropriate. However, if any file is removed and added to different commit , you will need to use the - search-copies-hard
switch:
- Search-copies-hard
For reasons of performance, by default,
-C
option only copies Finds if the original file of the copy was modified in the same changes. This flag inspects unmodified files as candidates for the source of the copy of the order. This is a very expensive operation for big projects, so use it with caution more than one-C
option has the same effect.
Comments
Post a Comment