I just did something really stupid and I don't know how to fix it.
It's about git. I created a new project on bitbucket then I cloned it on my local computer. I did some modification and several commits but no push. Then I realized I had to transfer my project to another user. So I transferred my project and updated the link to the remote repository on my local machine. But I did a mistake and I copied a wrong link to another repository. Then I did worse because I didn't realize my mistake. I did a pull. And the pull action merged this other remote repository on my local repository. At this moment I realized my error and I fixed the link of my remote repository. But I cannot do a new push now because if I do a push now I will push my commits but also all file from this other repository.
What can I do do revert a wrong pull ? Or is it possible to only push my specific commits only ?
EDIT -