相关疑难解决方法(0)

致命的:似乎不是一个git存储库

当我的git存储库url正确时,为什么会出现此错误?

致命:'git@skarp.beanstalkapp.com/gittest.git'似乎不是一个git存储库//致命:远程端意外挂断

编辑:

jitendra@JITENDRA-PC /c/mySite (master)
$ git push beanstalk master
fatal: 'git@skarp.beanstalkapp.com/gittest.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

jitendra@JITENDRA-PC /c/mySite (master)
$ git clone git://github.com/jquery/jquery.git
Cloning into jquery...
Remote: Counting objects: 19803, done.
Remote: Compressing objects: 100% (5196/5196), done.
Remote: Total 19803 (delta 14204), reused 19549 (delta 14052)
Receiving objects: 100% (19803/19803), 12.80 MiB | 591 KiB/s, done.
Resolving deltas: 100% (14204/14204), done.

jitendra@JITENDRA-PC /c/mySite (master)
$ gitk --all

jitendra@JITENDRA-PC /c/mySite …
Run Code Online (Sandbox Code Playgroud)

git git-remote

73
推荐指数
5
解决办法
19万
查看次数

GIT克隆到外部驱动器进行备份

我们在Windows网络中设置了GIT(使用msysgit和GitExtensions).我们每个人都拥有自己的存储库,我们将其推送到其中一台服务器上的远程"裸"存储库.都好.

我正在尝试在服务器上设置一个预定的作业,它将一个存储库从C驱动器克隆到一个外部驱动器(在F上) - 在使这个工作时遇到一些困难.我可以相对容易地在GIT bash中执行此操作,但我不确定如何将其保存到批处理文件中,然后我可以将其保存.

到目前为止我所拥有的:

rmdir F:\GitClone /s /q
mkdir F:\GitClone
mkdir F:\GitClone\Repo1
CD /D F:\GitClone\Repo1\
GIT CLONE /c/GIT/Repo1/
Run Code Online (Sandbox Code Playgroud)

我还在最后一行尝试了以下内容:

GIT CLONE C:\GIT\Repo1\
Run Code Online (Sandbox Code Playgroud)

但这也不起作用......我有点难过,并会感激一些帮助.C驱动器包含我们的裸存储库,而F驱动器是我们每天更换的外部驱动器...


这里有几个答案非常有用,谢谢.我得到的答案可能是这些的组合,因此指出如何运行bash脚本以及如何编写pull/push脚本.

需要将这些组合在一起工作,以便在各种驱动器交换进出时很高兴(例如,如果外部驱动器上不存在,则克隆存储库,否则只会拉出差异),但这应该是可行的.谢谢大家.

windows git backup

18
推荐指数
1
解决办法
9733
查看次数

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 push origin master不起作用

虽然,我可以在本地提交我的更改,但我无法推动原始主人

我跑

$ git remote add origin git@github.com:username/test.git
Run Code Online (Sandbox Code Playgroud)

我明白了

fatal: remote origin already exists.
Run Code Online (Sandbox Code Playgroud)

我跑

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

我明白了

ERROR: Repository not found.
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)

这有什么问题?

git github

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

标签 统计

git ×4

backup ×1

git-remote ×1

github ×1

heroku ×1

ruby-on-rails ×1

windows ×1