I have initialized a git repository using
$git init
then added the remote
$git remote add origin https://gitlab.com/project1.git