New project / command line: command does not work

The link to create a new project from the command line produces the following:

git push --set-upstream git@gitlab.com:Joymaker2/$(git rev-parse --show-toplevel | xargs basename).git $(git rev-parse --abbrev-ref HEAD)

It didn’t work.
When that failed, I tried cobbling up my own version, using the names more directly.

git push --set-upstream git@gitlab.com:Joymaker2/Panda main

Still didn’t work. Here’s the whole transcript. Did I blow it, or is the command outdated?
Running on MacOS 11.6 in ordinary Terminal.

% git init
Initialized empty Git repository in /Users/ken/Programs/Panda/.git/
% git status
On branch main

No commits yet

Untracked files:
(use “git add …” to include in what will be committed)
.vscode/
ArsThaumaturgis/
FirstTutorial/
Minecraft/

nothing added to commit but untracked files present (use “git add” to track)
% git push --set-upstream git@gitlab.com:Joymaker2/$(git rev-parse --show-toplevel | xargs basename).git $(git rev-parse --abbrev-ref HEAD)
fatal: ambiguous argument ‘HEAD’: unknown revision or path not in the working tree.
Use ‘–’ to separate paths from revisions, like this:
‘git […] – […]’
error: src refspec HEAD does not match any
error: failed to push some refs to ‘gitlab.com:Joymaker2/Panda.git’
% git add Minecraft
% git push --set-upstream git@gitlab.com:Joymaker2/Panda main
error: src refspec main does not match any
error: failed to push some refs to ‘gitlab.com:Joymaker2/Panda’
%