I just installed a Gitlab instance on my LAN.
I want to use it as the central repository for a Drupal dev->test->prod staging setup.
So, 1st step, I want to push my local "dev" workspace to the Gitlab repo.
Following instructions at Gitlab docs, I try
cd ./drupal8
git remote add origin https://gitlab.example.com/user1/drupal8-test.git
But that fails and returns
fatal: remote origin already exists.
Checking in the drupal dir
cd ./drupal8
git remote -v
composer https://github.com/drupal-composer/drupal-project.git (fetch)
composer https://github.com/drupal-composer/drupal-project.git (push)
origin https://github.com/drupal-composer/drupal-project.git (fetch)
origin [email protected]:drupal-composer/drupal-project.git (push)
I want to be able to push to the Gitlab repo, but I still obviously want composer etc to work in my dev env.
What's the right setup & workflow for using Drupal with a central Gitlab repo, making sure that I keep the ability to manage my site in 'dev' with composer?