请原谅我的无知; 我是Git的新手并且不确定哪里可以更好地寻找答案,但是在下面的url(指向我的mediatemple服务器上的git存储库)中的'example.com'之后冒号的目的是什么?
git remote add repo_name ssh://serveradmin%example.com@example.com:/home/45678/domains/git.example.com/html/example.git
我可能会遗漏一些东西,但我确信我已经检查了所有内容,我将一个仓库分叉并将其克隆到我的系统上,在提交后做了一些更改 git push origin master
它说
fatal: remote error:
You can't push to git://github.com/my_username/my_repo.git
Use git@github.com:my_username/my_repo.git
Run Code Online (Sandbox Code Playgroud)
我错过了什么吗?然后我试了
git remote add origin https://github.com/my_username/my_repo.git
它回来了
致命的:远程起源已经存在.
我不明白为什么这是hapenning,请帮忙
当我尝试推送到Heroku时,我收到以下错误消息.
[first_app]$git push heroku master
fatal: I don't handle protocol 'git@heroku.com:yourhttp'
Run Code Online (Sandbox Code Playgroud)
然后我看看我拥有的Heroku的不同版本,似乎不止一个,所以我尝试删除它但得到了另一个错误消息.
[first_app]$ git remote set-url --delete heroku git@heroku.com:yourhttp://still-lake-3136.herokuapp.com/.git
fatal: Will not delete all non-push URLs
Run Code Online (Sandbox Code Playgroud)
我搜索了类似的错误消息,但无法找到任何东西来解决这个问题.非常感谢您的帮助.
这是我的配置文件:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
[remote "origin"]
url = git@github.com:wongsteven/first_app.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[remote "heroku"]
url = git@heroku.com:yourhttp://still-lake-3136.herokuapp.com/.git
fetch = +refs/heads/*:refs/remotes/heroku/*
[heroku]
remote = heroku
Run Code Online (Sandbox Code Playgroud)
我试图在github上使用Jekyll但似乎无法推动更新文件.我是git的新手,没有问题推动我做的回购,但当我试图推送到我的网站时,我不断收到这些错误:
你无法推动
git://github.com/anthonybrown/anthonybrown.github.com.git
使用git@github.com:anthonybrown/anthonybrown.github.com.git
我一直试图这样做3天,然后翻页.