I followed below article to push gitlab repository code to Google cloud source repository but I'm getting an error on this command
git push -f google master
error: src refspec master does not match any.
error: failed to push some refs to 'https://source.developers.google.com/p/project/r/test/'
Article followed: https://medium.com/@bamnet/cloud-source-repositories-gitlab-2fdcf1a8e50c
Is there anything , I'm doing wrong ? Any thoughts as to how I can avoid this error message?
The issue is the date of the article you are following: Aug. 2018.
GitLab Runner has changed since then, more precisely in May 2019.
The problem is described in this thread from May 2019:
That was because of, on GitLab side, MR 1203:
Issue 4097 was opened at the time
So don't push
master. Push HEAD.The OP Adam uses another workaround and add: