How do I push a project to a newly created git repo on Gitlab?

I’ve set up an account on Gitlab. I’ve uploaded an SSH key.

Within Gitlab I’ve created a new git repo. Now I’d like to push to it.

When I run ‘git push -u origin --all’ I get the following response from the terminal:

remote: 
remote: ========================================================================
remote: 
remote: You (*****) must accept the Terms of Service in order to perform this action. To accept these terms, please access GitLab from a web browser at https://gitlab.com.
remote: 
remote: ========================================================================
remote: 
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

This doesn’t tell me much.
Is there a way to get more detailed diagnostics?

Depends on what do you have locally. See couple common options:

Create a new repository
git clone git@gitlab.com:example/example.git
cd example
git switch -c main touch README.md
git add README.md
git commit -m "add README" git push -u origin main
Push an existing folder
cd existing_folder
git init --initial-branch=main git remote add origin git@gitlab.com:example/example.git
git add .
git commit -m "Initial commit"
git push -u origin main
Push an existing Git repository
cd existing_repo
git remote rename origin old-origin
git remote add origin git@gitlab.com:example/example.git
git push -u origin --all
git push -u origin --tags