remote: fatal: unknown commit refs/heads/
I got this error today when I tried to push a branch in a new empty git repo: https://gitlab.eclipse.org/eclipsefdn/memorials
This error did not stop the commit from being pushed to Gerrit
/--{[10200]chrisguindon@cg-newton:s004}----{~/localdev/memorials}--
| 15:01 <git:(main)> % git push origin main 2020-11-06
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 12 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 5.56 KiB | 2.78 MiB/s, done.
Total 4 (delta 0), reused 0 (delta 0)
remote: fatal: unknown commit refs/heads/
remote: Commit: _nil ~
remote:
remote:
remote: Warnings:
remote: A commit is required to validate
remote: Any warnings or errors noted above may indicate compliance issues with committer ECA requirements. More information may be found on https://www.eclipse.org/legal/ECA.php
remote:
remote:
remote: Errors or warnings were encountered while validating sign-off in current request for non-project repository.
remote:
remote: Validation is currently not required for non-project repositories, continuing.
To gitlab.eclipse.org:eclipsefdn/memorials.git
* [new branch] main -> main