We have had a big git repository that we have re-created under a new git url. The process was the following
- create new empty git repo
- copy paste the code from the old
mainbranch, and commited it - re-created some branches, lets call one of them
feature/a(also with copy paste of files) - developers started working on it
Now when the developers try to merge in their feature/a branch back into main it overwrites some parts of the code as it thinks the changes in the feature branch are newer, while in the old repository they were of course identified as older changes as the full git history was available.
Is there a way to solve this situation so the developers dont run into confusion once they start merging?