Github push origin master not working

2019-05-10 22:53发布

问题:

First time since a tutorial in July that I'm trying to do a remote push on Github. I added my SSH key, and i can successfully connect to Github, but when i do:

$ git push origin master

I get

ssh: github: no address associated with name
fatal: The remote end hung up unexpectedly

I tried:

$ git remote set-url origin git@github:oscargodson/storageLocker.git

As i saw that on other posts, but it doesn't seem to help...

My project is: https://github.com/OscarGodson/storageLocker

in case that helps... maybe my syntax is wrong? Also, not sure if this changes anything either, but I'm on a Windows 7 64bit machine running the Git Shell app (MINGW32)

EDIT

So, i'm super close, but it's driving me insane. I had a non-fast-forward error, so i pulled my project and now i rm --cached all the files, now im trying to add new files (since this is a complete rewrite of the project) but it says

"you cannot do a partial commit during a merge."

so i do

git merge [FILE]

and it says

"you have not concluded your merge (MERGE_HEAD exists)"

WTF?! It's like an infinite loop... i can't merge until i commit and i can't commit until I merge?!

回答1:

It looks like you made a typo...you're missing .com in the remote's URL:

git@github:oscargodson/storageLocker.git

Should be

git@github.com:oscargodson/storageLocker.git


回答2:

It could be because of their outage earlier this month:

https://github.com/blog/744-today-s-outage



标签: git shell github