You could add another remote repository such as 'local'.
Try the following way (which I just ran successfully):
(Suppose your local repositories are MyGitRepo.git and AnotherRepo.git in the same folder)
in MyGitRepo.git folder:
$: git remote add local ../AnotherRepo
$: git fetch local
$: git merge local/master
If master is the branch you want to merge.
After git fetch local
, you will probably see the following:
$ git fetch local
From ../AnotherRepo
* [new branch] master -> local/master
which means that another tracking branch is successfully made to track the (other) local repository.
Ref:
read this link about multiple remote repositories