I have a local gitLab repository it has a master branch and other branches that I commit to. And after everything was tested I need to make so, that the code which is on a local gitLab (my-branch) would be constantly updated to a remote gitLab repository (test branch). The code that I'm constantly changing is not checked out from a remote gitLab repository but from a local gitLab master and
I don't know what kind of process should I use to make so that the tested changes would be found on a remote test branch which is on a remote gitLab.
At first I thought that maybe mirroring git lab repository would help, but that is forbidden for security and other reasons.
I can checkout a remote gitLab branch (test). And what I'm doing at a moment is I'm copying changed files to a remote test branch and then commit and then push the commit. But it feels awkward.
I've read on stackoverflow
git merge different repositories?
If you want to merge project-a into project-b:
cd path/to/project-b
git remote add project-a /path/to/project-a git
fetch project-a --tags git merge --allow-unrelated-histories
project-a/master # or whichever branch you want to merge git remote
remove project-a
My question is how to transfer changes in a git way from one repository to other repository without manually copy pasting changed files between repositories