in gitlab. you must add username.
git remote add origin => ADDS a new remote.
git remote set-url origin => UPDATES existing remote.
or
git remote add origin https://[yourname]@gitlab.com/yourname/yourproject.git
You need to create a local branch that tracks a remote branch. The following command will create a local branch named daves_branch, tracking the remote branch origin/daves_branch. When you push your changes the remote branch will be updated.
For most recent versions of git: ```bash git checkout –track origin/daves_branch
```s