直接git github不行吗

ziluopao 发布于 08/20 09:40
阅读 123
收藏 0
Git

看了很多教程都说把本地push到远程github上用 git push

但我试了一下,确是这样

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

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)

Warning: Permanently added the RSA host key for IP address '13.229.188.59' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

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

看提示是说没有指定分支,那么问题来了,写分支怎么写呢?

比如我想push到我远程的帐户abc中的YYY这个仓库中(目前已把本地文件提交到了本地仓库中)

加载中
0
夜行生物
夜行生物

Permission denied (publickey).

fatal: Could not read from remote repository.

 

没有配ssh

0
ziluopao
ziluopao

引用来自“夜行生物”的评论

Permission denied (publickey).

fatal: Could not read from remote repository.

 

没有配ssh

哦有点明白了,我是看的windows如何使用git的一些教程,但我现在实际操作用的是linux系统,并且用的是xshell操作的,应该是ssh没有配置,多谢

返回顶部
顶部