I have an issue regarding a recent PR that I created on Bitbucket. I accidentally copy pasted the content of the file, in a way that the whole content appears to be written by me, which ruins the Git history, which is important. This commit got pushed and several commits were followed after that, so undoing the commit is not the solution here, since every commit has a lot of changes.
I was wondering if there's a way to revert only an old file from an old commit, make only the necessary changes and commit this specific file.
I have read some articles about it but haven't come up with a safe solution yet.
Thank you in advance :)