I use below command according to the document to create a PR, but fail.
git push origin HEAD:refs/for/main
I got below errors, is there anything wrong?
$ git push origin HEAD:refs/for/main
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Writing objects: 100% (3/3), 256 bytes | 256.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
To http://10.10.1.119:8418/Xiangyuan-RD/22222.git
! [remote rejected] HEAD → refs/for/main (topic-branch is not set)
error: failed to push some refs to ‘http://10.10.1.119:8418/Xiangyuan-RD/22222.git’