A PHP Error was encountered
Severity: Notice
Message: Undefined index: userid
Filename: views/question.php
Line Number: 191
Backtrace:
File: /var/www/html/cnasolution/application/views/question.php
Line: 191
Function: _error_handler
File: /var/www/html/cnasolution/application/controllers/Questions.php
Line: 419
Function: view
File: /var/www/html/cnasolution/index.php
Line: 315
Function: require_once
git push command conflicts with master and main
When I run git push -u origin main
on the terminal, it says error: src refspec main does not match any.
But when I run git push -u origin master
, it works correctly and it creates another master
branch in the repo along with the default main
branch and the total branches will be 2.
At this point, I can't do a PR to merge the master
to the main
and the error message is there's no diff between master and main branches.
Can anyone explain this condition and give me a working solution? Your support will be highly appreciated.