相关疑难解决方法(0)

Git推送错误:"origin似乎不是git存储库"

我按照这里给出说明创建一个Git存储库.一切顺利到最后一行:

$ git push -u origin master  
Run Code Online (Sandbox Code Playgroud)

致命:'origin'似乎不是一个
致命的git存储库:远程端意外挂断

我在OS X 10.6.8上使用git版本1.7.11.3

$ git remote -v  
Run Code Online (Sandbox Code Playgroud)

没有回报

存储库的配置文件:

[core]
repositoryformatversion = 0  
filemode = true  
bare = false
logallrefupdates = true  
ignorecase = true  
Run Code Online (Sandbox Code Playgroud)

我必须使用sudo visudo命令打开sudoers文件,并在其中添加以下内容(在#User privilege规范下):

git ALL=(ALL) ALL.  
Run Code Online (Sandbox Code Playgroud)

如果我这样做:

$ git remote add origin /Volumes/500GB/git-repository/myproject.git  
Run Code Online (Sandbox Code Playgroud)

它没有错误,但我没有在存储库中看到任何代码(它有上述目录,如分支,钩子,......)

如果我做:

$ git push -u origin master  
fatal: 'origin' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

$ git remote -v …
Run Code Online (Sandbox Code Playgroud)

git git-remote

59
推荐指数
7
解决办法
18万
查看次数

Git拉错误:"致命:找不到远程参考大师"来自Heroku

我在heroku上传我的应用程序.但我面临一些问题.问题:致命:'priroda'似乎不是一个git存储库?

~/priroda$ git pull
fatal: 'priroda' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

~/priroda$ git remote -v
    heroku  git@heroku.com:secure-anchorage-3129.git (fetch)
    heroku  git@heroku.com:secure-anchorage-3129.git (push)
    origin  priroda (fetch)
    origin  priroda (push)
Run Code Online (Sandbox Code Playgroud)

当我添加此命令时:git push heroku master我收到很多错误:

~/priroda$ git remote add origin git@heroku.com:secure-anchorage-3129.git

~/priroda$ git pull origin master
Initializing repository, done.
fatal: Couldn't find remote ref master

~/priroda$ git push heroku master
Initializing repository, done.
Counting objects: 117, done.
Delta compression using up to 4 threads. …
Run Code Online (Sandbox Code Playgroud)

git ruby-on-rails heroku

10
推荐指数
3
解决办法
4万
查看次数

标签 统计

git ×2

git-remote ×1

heroku ×1

ruby-on-rails ×1