Error: src refspec main does not match any #1150
-
this is the error i get (tried several times still did not work) |
Beta Was this translation helpful? Give feedback.
Answered by
alymurtazamemon
Jul 20, 2022
Replies: 2 comments 1 reply
-
Do you mind replacing the remote repo completely with your local repo? If so, you can do this:
The complete algorithm, check if you did it right first: Instructions below:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
@0xamey You do not have the main branch. Create a main branch git branch -M main Now push will work, Posting here for knowledge. git push origin main |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@0xamey You do not have the main branch.
Create a main branch
Now push will work, Posting here for knowledge.