Skip to content

New User: Unable to Push File #22772

Discussion options

You must be logged in to vote

Thank you @kingthorin & @airtower-luna! Appreciate all the replies and help. I had a feeling I had to use the SSH URL, but wasn’t sure. I found a solution in the end by switching to it, but everytime I used:

git push origin master

I would get the error:

error: src refspec master does not match any
error: failed to push some refs to ‘github.com:CodezHere/heelo-world.git’

When I used:

git push origin

It worked!
What is the difference between the two? Am I losing anything by not being able to run the “git push origin master” command?

Replies: 13 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants