Github推送起源大师不工作 [英] Github push origin master not working
问题描述
$ git push origin master
我得到
ssh:github:没有与名称关联的地址
fatal:远程端意外挂起
我试过:
$ git remote set-url origin git @ github:oscargodson / storageLocker.git
正如我在其他帖子上看到的,但它似乎没有帮助...
我的项目是:
https://github.com/OscarGodson/ storageLocker
如果有帮助...也许我的语法错了?此外,不知道这是否会改变任何东西,但我在运行Git Shell应用程序的Windows 7 64位计算机上(MINGW32)
编辑
所以,我超级接近,但它让我疯狂。我有一个非快速前进的错误,所以我拉我的项目,现在我rm - 缓存所有文件,现在即时试图添加新文件(因为这是一个完整的项目重写),但它说
您无法在
a merge期间进行部分提交。
所以我做
lockquote
它表示
lockquote
<你>还没有完成合并
(存在MERGE_HEAD)
WTF ?!这就像一个无限循环...我不能合并,直到我提交,我不能合并,直到我合并?!
<看起来你犯了一个错字......你在远程URL中缺少 .com
:
git @ github:oscargodson / storageLocker.git
应该是
git@github.com:oscargodson / storageLocker.git
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?!
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
这篇关于Github推送起源大师不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!