Getting this Error "error: src refspec Hello does not match any". How do I resolve this?

I am running automation test on LambdaTest from Jenkins and I am trying to push some code to my Github repo but I am getting error “error: src refspec hello does not match any”. How do I resolve this error? A little help will be really appreciated.

Hello Dipen-soni,

This usually happens when you are trying to push some code to a non-existent branch. To resolve this, you can create the branch, commit and then push your code like the below:

git checkout -b master     //new branch master
# add commit
git push origin master      //pushing code to master