There is a need to manage multiple Git servers for the development and deployment.
To clone the source repository
git clone $SOURCE_REPOSITORY_URL
Add destination remote origin
git remote add downstream $UPSTREAM_REPOSITORY_URL
Push to the destination repository
git push downstream $BRANCH_NAME
git checkout -b $BRANCH_NAME
git pull origin $BRANCH_NAME
git push downstream $BRANCH_NAME
└─(09:46:25 on test-branch)──> git remote -v
downstream https://gitlab.somewhere.com/user/repo (push)
downstream https://gitlab.somewhere.com/user/repo (fetch)
origin https://gitlab.elsewhere.com/otheruser/otherrepo.git (fetch)
origin https://gitlab.elsewhere.com/otheruser/otherrepo.git (push)