问题:

我从Git那里收到了这条消息:

您要求从远程“原点”拉出,但没有指定分支。 因为这不是当前分支的默认配置远程,所以必须在命令行上指定分支。

有人能解释一下吗? 更重要的是如何解决它?

I got this message from Git:You asked to pull from the remote ‘origin’, but did not specify a branch.Because this is not the default configured remote for your current branch, you must specify a branch on the command line.Can anyone explain it?and more important how to fix it?

问题:

使用git从PC连接到github时出现问题。 系统赢7。

我通过代理建立了连接,因此我在git config文件中指定了它(在普通git文件夹中和git repo文件夹中)。 为此,我在git bush中输入了下一行:

$ git config --global http.proxy http://<username>:<userpsw>@<proxy>:<port>

它在其他程序(例如maven)上的工作方式如下所示:

<username> - my login to our corp system
<userpsw> -my password to corporat system
<proxy> - 10.65.64.77
<port> - 3128

但是当我尝试推送或克隆我的仓库时,我会收到

fatal: unable to access '<repo githup link>' Received HTTP code 407 from proxy after CONNECT

我已经尝试不仅输入用户名,还输入域\\用户名,如果代码语言表出现问题,请更改密码。 而且我什至输入了错误的密码。 错误保持不变。

当我输入“ 10.65.64.177.com”并尝试推送回购时,我收到:

fatal: unable to access '<repo github link>': Failed connect to github.com:3128; No error

只是不知道该尝试什么。

I have a problem while connecting to github from my PC, using git.System Win 7.I have connection through proxy, so i specified it in git config files (both in general git folder, and in git repo folder).To do this i entered next line to my git bush:The way it works on other programms (ex: maven) it looks like that:But when i try to push or to clone my repo, i receiveI try already to enter not just my username but domain\\username, changed my password in case there are problems with code language tables.And i even entered wrong password.Error stayed the same.When i entered in ‘10.65.64.177.com’ and tried to push repo, i received:Just don’t know what to try.

问题:

我在Eclipse Helios上安装了EGit插件,我正在尝试将它与我的GitHub帐户一起使用,但是当我尝试配置它时,我收到“Auth Failed”错误。

我一直在谷歌搜索但没有运气……这似乎是我的密码问题,但AFAIK EGit正在寻找合适的地方( /home/user/.ssh/id_rsa )我在连接方面没有问题sshgit控制台客户端。

一些博客说这是URI和Egit解析器的问题,但我还没有找到解决方案。

I’ve installed EGit plugin at Eclipse Helios and I’m trying to use it with my GitHub account, but when I try to configure it I get an “Auth Failed” error.I’d been googling it but no luck… it seems to be a problem with my passphrase but AFAIK EGit is looking at the right place ( /home/user/.ssh/id_rsa ) and I’ve no problem in connect by ssh or git console client.Some blogs says that is a problem with the URI and the Egit’s parser but I still haven’t found a solution.

问题:

我试过谷歌搜索并阅读http://help.github.com/troubleshooting-ssh/和各种各样的指南。 我无法git push -u origin mastergit push origin master (相同的命令)。

我的git帐户至少有2年左右的时间。 我已成功地在我的笔记本电脑上创建了repos和push -u origin master ,但在这个桌面上我遇到了问题。

这是我试过的:

1.我已经设置了我的git用户名

2.我已经设置了我的git用户电子邮件

3.我已将/home/meder/.ssh/id_rsa.pub的内容上传到github的帐户页面。 我已经验证我没有粘贴任何空格

4.我用这些内容创建了一个〜/ .ssh / config:

  Host github.com
  User git
  Hostname github.com
  PreferredAuthentications publickey
  IdentityFile ~/.ssh/id_rsa

我已经将.ssh修改为700,id_rsa 600

5.我添加了正确的远程原点而没有输入错别字 : git remote add origin [email protected]:medero/cho.git

6.要确认#5,这是我的.git / config。 目录是正确的,而不是另一个目录:

[remote "origin"]
        fetch = +refs/heads/*:refs/remotes/origin/*
        url = [email protected]:medero/cho.git

7. ssh [email protected] -v给了我一个成功的身份验证

8.一个奇怪的是,它迎接我一直的用户名t追加到它。 我的github用户名是medero ,而不是medert

你好mederot! 您已成功通过身份验证,但GitHub不提供shell访问权限。

9.不在代理或防火墙之后

10.提供密钥,继承-v的输出:

 debug1: Host 'github.com' is known and matches the RSA host key. debug1: Found key in /home/meder/.ssh/known_hosts:58 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Offering public key: /home/meder/.ssh/id_rsa debug1: Remote: Forced command: gerve mederot debug1: Remote: Port forwarding disabled. debug1: Remote: X11 forwarding disabled. debug1: Remote: Agent forwarding disabled. debug1: Remote: Pty allocation disabled. debug1: Server accepts key: { some stuff, dont know if i should share it debug1: Remote: Forced command: gerve mederot debug1: Remote: Port forwarding disabled. debug1: Remote: X11 forwarding disabled. debug1: Remote: Agent forwarding disabled. debug1: Remote: Pty allocation disabled. debug1: Authentication succeeded (publickey). 

11.这是我使用的命令

mkdir cho
git init
touch README
git add README
git commit -m 'test'
git remote add origin [email protected]:medero/cho.git
git push -u origin master

12.我不想创建新的SSH密钥。

13.如果我使用ssh git clone并进行编辑,提交和git推送,我会得到同样的东西。

14.这是实际错误:

$ git push
ERROR: Permission to medero/cho.git denied to mederot.
fatal: The remote end hung up unexpectedly

15.我已经设置了我的github用户名和github令牌:

$ git config –global github.user medero $ git config –global github.token 0123456789yourf0123456789token为系统上的所有git实例设置GitHub令牌

16.我已经确认我的github用户名不是mederot而且我的github令牌在我的帐户页面上是正确的(验证前2个字符和最后2个字符)。

17.确认#16,〜/ .gitconfig包含

[github]
    token = mytoken...
    user = medero

18.如果有必要,我做了ssh-key add ~/.ssh/id_rsa

说法:

我怀疑有些东西可疑,因为当我通过ssh认证时,用户问候语是mederot而不是medero ,这是我的medero 我的github帐户中的某些内容可能被错误地缓存了吗?

我还怀疑一些本地ssh缓存怪异,因为如果我mv ~/.ssh/id_rsa KAKAmv ~/.ssh/id_rsa.pub POOPOO ,并且执行ssh [email protected] -v ,它仍然验证我并说它服务我的/home/meder/.ssh/id_rsa我改名了吗?! 它必须缓存?!

I have tried googling and read through http://help.github.com/troubleshooting-ssh/ and various, various guides.I am unable to git push -u origin master or git push origin master ( the same command ).I’ve had my git account for at least 2 or so years.I’ve successfully been able to create repos and push -u origin master fine on my laptop but on this desktop I’m having issues.Here’s what I tried:1. I have setup my git user name2. I have setup my git user email3. I have uploaded the contents of my /home/meder/.ssh/id_rsa.pub to github’s account page.I have verified I did not paste any whitespace4. I have created a ~/.ssh/config with these contents:I have chmodded the .ssh to 700, id_rsa 6005. I have added the proper remote origin without making typos : git remote add origin [email protected]:medero/cho.git6. To confirm #5, here is my .git/config.The directory is correct and not another directory:7. ssh [email protected] -v gives me a successful Authentication8. One weird thing is, the username which it greets me with has t appended to it.My github username is medero , not medert .Hi mederot!You’ve successfully authenticated, but GitHub does not provide shell access.9. I am not behind a proxy or firewall10. The key is offered, heres the output from -v :11. Here are the commands I used12. I don’t want to create a new SSH key.13. If I git clone using ssh and make an edit, commit, and git push, I get the same exact thing.14. Here’s the actual error:15. I have setup my github username and github token:$ git config –global github.user medero $ git config –global github.token 0123456789yourf0123456789tokenSets the GitHub token for all git instances on the system16. I have confirmed my github username is NOT mederot and my github token IS CORRECT per my account page ( validated first 2 chars and last 2 chars ).17. To confirm #16, ~/.gitconfig contains18. I did ssh-key add ~/.ssh/id_rsa if that’s even necessary…THEORIES:I suspect there’s something fishy because when I get ssh authenticated, the user greeting is mederot and not medero , which is my acct.Could something in my github account possibly be incorrectly cached?I also suspect some local ssh caching weirdness because if i mv ~/.ssh/id_rsa KAKA and mv ~/.ssh/id_rsa.pub POOPOO , and do ssh [email protected] -v , it still Authenticates me and says it serves my /home/meder/.ssh/id_rsa when I renamed it?!It has to be cached?!

问题:

今天我尝试使用全新的Android Studio检查我的Github项目,结果发现了这个令人讨厌的错误:

在此输入图像描述

为什么事情永远不会开箱即用……?

Today I’ve tried to checkout my Github project using brand new Android Studio and ended up with this nasty error :Why things just never work out of the box …?