disclaimer: I am relatively new to Git
so this may seem to be a confusing question from the title, so apologies in advance.
While working on a project I had created 2 branches (lets name them b1 and b2). b1 was created to define a specific translation file, whereas b2 was responsible for implementing that file in the project.
During my work, I failed to realize that the work was to be divided into 2 branches, and so defined the file, as well as implemented it in the same branch and later commit the changes to the repository (We are required to make only one commit per branch, therefore the solution here is not applicable for me)
One naive solution could be to copy everything again to the other branch manually and remove the unrelated files from the branch b2, as well as delete unrelated files from b1, and then amend the commit at b1, but there are too many files that would need to be copied and deleted manually. Is there a cleaner solution to this? If so what are the steps needed to achieve this?
Thanks in advance!