Chr*_*zzi 4 git macos branch push github
我在我的Mac名称数据库中有一个工作分支,我想将此分支推送到GitHub,并尝试通过运行来执行此操作:
git push -u origin database
Run Code Online (Sandbox Code Playgroud)
并收到以下错误消息:
You can't push to git://github.com/Paratron/spacebattles.git
Use git@github.com:Paratron/spacebattles.git
Run Code Online (Sandbox Code Playgroud)
是否存在可能导致此问题的已知问题?是否有任何可能的错误导致此错误?
就像它说的那样,你无法推送git://github.com/Paratron/spacebattles.git(因为它是一个只读的URL).试试这个:
git remote set-url origin git@github.com:Paratron/spacebattles.git
git push -u origin database
Run Code Online (Sandbox Code Playgroud)
如果您没有以这种方式使用git,则需要将其设置为首先使用GitHub:http://help.github.com/mac-set-up-git/
那么,你是Paratron?如果没有,您需要首先分配他的存储库:http://help.github.com/fork-a-repo/.然后你需要使用你的用户名(git@github.com:YOUR_USERNAME/spacebattles.git).
| 归档时间: |
|
| 查看次数: |
2901 次 |
| 最近记录: |