git:可以拉,但不能推

时间:2014-11-18 12:12:20

标签: git github ssh

我有一种奇怪的行为,因为我可以拉,但我无法推动。

我有一个ssh密钥,每当我尝试拉或推它时都要求我输入密码。

$ ssh -T git@github.com
Enter passphrase for key '/c/Users/b.rcb/.ssh/id_rsa':
Hi ricardochampa! You've successfully authenticated, but GitHub does not provide
 shell access.


$ git pull
Enter passphrase for key '/c/Users/b.rcb/.ssh/id_rsa':
Already up-to-date.


$ git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:

  git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

  git config --global push.default simple

When push.default is set to 'matching', git will push local branches
to the remote branches that already exist with the same name.

In Git 2.0, Git will default to the more conservative 'simple'
behavior, which only pushes the current branch to the corresponding
remote branch that 'git pull' uses to update the current branch.

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)

Enter passphrase for key '/c/Users/b.rcb/.ssh/id_rsa':
ERROR: Permission to rchampa/ParsersSubasta.git denied to ricardochampa.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

我正在使用Windows。

0 个答案:

没有答案