i have a quite simple use case (i guessed so far) but it turns out to be more problematic than i thought.
So we have an existing repo in Bitbucket "RepoA" and wanted to keep working on a copy of that repo called "RepoB". We wanted to work on a clone because we wanted to keep the file history that happened in RepoA without changing RepoA anymore.
So what i did/tried:
- I cloned RepoA (tried a normal clone as well as a --mirror clone)
- I changed the remote of the clone to "RepoB" which was blank at that time
- I pushed everything into the remote RepoB
So it looked fine at first, in Bitbucket the file history contained both changes made in RepoB as well as the changes which happened in RepoA. In addition the whole commit history was also available.
But when i was using VSCode and working on the local repo, the timeline/file history only contains the commits which have been made in RepoB.
Maybe this is quite simple to achieve but i couldn't figure it out so far.