Github推送起源大师不工作 [英] Github push origin master not working

查看:87
本文介绍了Github推送起源大师不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从七月份的一篇教程以来,我第一次尝试在Github上进行远程推送。我添加了我的SSH密钥,并且我可以成功连接到Github,但是当我这样做时:

  $ 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
git merge [FILE]


它表示

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆