I have repository A and repository B in bitbucket
Can I send a pull request from rep B to A without using the fork feature? Thanks
As far as i know you cannot sent pull request since they are 2 different repositories. what you can do is to create a patch git format-patch
and add it to your second repo as pull request.
Github has its own way of doing it. https://github.com/blog/1901-managing-issues-and-pull-requests-across-repositories
Maybe it is not too late for those who will find this question (like me :)).
Following article is a very detailed step-by-step guide about how to perform requested action: https://saintgimp.org/2013/01/22/merging-two-git-repositories-into-one-repository-without-losing-file-history/
If you are facing error fatal: refusing to merge unrelated histories
on step git merge old_a/master
, just add flag --allow-unrelated-histories
to the command (like this git merge old_a/master --allow-unrelated-histories
). Inspired by this q/a: https://stackoverflow.com/a/37938036/3264323
PS. This answer is not about pull request, but about how to merge two repos. Of course you could use this info to merge one repo to another one's different branch and then create pull request. ;)