• 23
  • Feb

不知道从什么时候开始,我在公司git push时,总是出现错误。

出错信息是:

fatal: protocol error: expected sha/ref, got '
*********'

You can't push to git://github.com/user/repo.git
Use git@github.com:user/repo.git

*********'

这时只能在git push后指定用户名和源才行。

今天找了些资源,发现是remote设置的问题,重新设置一下即可:

$ git remote rm origin
$ git remote add origin
$ git remote add origin git@github.com:tualatrix/gentoo.git
$ git push origin 

顺便说下,我的Gentoo第三源的(https://github.com/tualatrix/gentoo/tree)里的东西已经越来越多了,其中一些只有我那里才有的。 究竟是什么?自己去看吧!

Tag: Gentoo, Git.

» You can leave a comment.

1 Pingbacks

1 Comment

  1. handsomegui

    学习了,多谢。

    可惜我一直没有下定决定用Gentoo。
    目前是laptop:(Arch+ Fedora + Freebsd )+ Ubuntu(Eeepc).

    楼主能否根据你这么长的实际使用时间来大概介绍下Gentoo的主要优缺点?

    我听说的比较心动。 谢谢

Leave a Comment