I have a bitbucket git repo repo1
containing (among other folders and subfolders) a subfolder repo1/path/to/mysubfolder
. The architecture of mysubfolder
is
\mysubfolder
folder1
...
foldern
file1
...
filep
and the path to mysubfolder
contains spaces.
I have an empty bitbucket git repo repo2
. I would like to :
- remove
mysubfolder
fromrepo1
(history include) - make
mysubfolder
contains be the contains ofrepo2
, that is, that the architecture ofrepo2
be the same as the one ofrepo1
- make
repo2
's history equal tomysubfolder
's history.
A complication though : mysubfolder
's history is huge and contain a small hundred of commits that concern mysubfolder
but also files/folders not in mysubfolder
'. (That is, does not only contain "pure" mysubfolder
commits.)