之后git init,我添加并提交了一些文件,进行了一些更改,添加并提交.设置git守护程序(在WinXP上的Cygwin下运行)并克隆一次存储库.现在,我在克隆的存储库中收到此错误:
$ git status
error: bad index file sha1 signature
fatal: index file corrupt
Run Code Online (Sandbox Code Playgroud)
有没有办法解决这个问题,除了获取存储库的新副本?
当我试图在github.com上推送现有存储库时,当我输入命令时,网站提示我放入终端,我收到此错误消息致命:
Not a git repository (or any of the parent directories): .git
Run Code Online (Sandbox Code Playgroud)
如果有人能帮助我,那就太棒了,谢谢.
当我尝试git push to heroku时,我得到了以下内容
fatal: Not a git repository (or any of the parent directories): .git
Run Code Online (Sandbox Code Playgroud)
我试着在轨道教程书上关注ruby.
我想我安装了客户端heroku包(从heroku网站下载并按照他们的指示安装,GUI格式安装).所以我的客户端heroku应该没问题(我是编程新手,所以不确定这个术语的说法是否正确).
然后我打开一个新的终端并键入
git push heroku master
Run Code Online (Sandbox Code Playgroud)
我有
fatal: Not a git repository (or any of the parent directories): .git
Run Code Online (Sandbox Code Playgroud)
谁能擅长这个解释我错过了哪一部分?即必须先移动到某个目录?
请告诉我这个命令,因为如果没有命令我可能仍然不知道.
PS:我想我已经在我的github上有了存储库.
致命的不是git存储库(或任何父目录).git 是我尝试在我的repo上执行任何git操作时遇到的错误.我对我的项目进行了一些更改,即repo然后我尝试git状态来查看我的更改并遇到此错误.我用Google搜索了这个错误,但没有取得任何进展.当尝试在repo之外的目录中执行git操作时,这个错误似乎是最常见的,而对我来说并非如此.我也尝试检查我的 ./git/HEAD和 ./git/logs/refs/heads这两个都是空文件../git/logs/refs/remotes/origin/master也是空的.
所以从一开始:
我部署到 heroku 是成功的,但是每当我尝试打开应用程序时它就会崩溃。我检查了 heroku 日志并收到以下错误:
fatal: Not a git repository (or any parent up to mount point /app)State changed from starting to crashed 2015-12-22T12:36:13.277955+00:00 heroku[web.1]: State changed from crashed to starting
2015-12-22T12:36:15.736462+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 15638 -e production`
2015-12-22T12:36:18.003961+00:00 app[web.1]: fatal: Not a git repository (or any parent up to mount point /app)
2015-12-22T12:36:18.003980+00:00 app[web.1]: Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
2015-12-22T12:36:18.006461+00:00 app[web.1]: fatal: Not a git repository (or any parent up to mount …Run Code Online (Sandbox Code Playgroud) 我的问题不是这个问题。
在执行git clone我得到这个错误。我正在使用的命令是:
$ git clone "https://gdt.test.com/gitblit/log/?r=mytest.git&h=refs/heads/branch_development"
Run Code Online (Sandbox Code Playgroud)
在简单运行时:
$ git clone "https://gdt.test.com/gitblit/log/?r=mytest.git"
Run Code Online (Sandbox Code Playgroud)
我得到错误:
fatal: could not create work tree dir '?r=mytest'.: Invalid argument
Run Code Online (Sandbox Code Playgroud)
我想我需要将完整的URL以及r和h参数一起放入。因为这些参数指定了我的存储库的名称。
我做错了(复制和粘贴URL)。但是,即使使用URL:
gdt.test.com/gitblit/r/mytest.git/
Run Code Online (Sandbox Code Playgroud)
我收到错误消息:
'fatal: repository 'gdt.test.com/gitblit/r/mytest.git/'; not found.
Run Code Online (Sandbox Code Playgroud)
如何从gitblit摘要页面复制正确的URL?
我遇到了"fatal: Not a git repository (or any of the parent directories): .git"问题,虽然我在一个有效的git目录中.
我有一个项目根目录.git.我有一个子目录,site它有一个单独的sbt文件,用于构建scaladocs并使用gh-pages插件将它们推送到我项目的gh-pages分支.
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
$ ls -la ..
total 359148
...
drwxr-xr-x 8 myname myname 4096 Jun 18 22:41 .git
$ sbt ghpages-push-site
...
[error] fatal: Not a git repository (or any of the parent directories): .git
Run Code Online (Sandbox Code Playgroud)
那我错过了什么?我在一个有效的git目录中(如git status确认).
我也从原点进行了新的结账,没有运气.我跑进git init了site子目录.没有运气,这个错误只是持续存在.
编辑:奇怪的是,我有一个不同的GitHub项目具有完全相同的布局和sbt构建文件,这里不会发生问题.这有效,但事实并非如此.是否有可能与后一个项目使用不同的组织有关?
使用后克隆git存储库
git clone https://github.com/********/****.git
Run Code Online (Sandbox Code Playgroud)
我只是尝试将某些内容推送到同一个git仓库中,但它显示:
致命的:不是git存储库(或任何父目录):.git
我怎样才能解决这个问题?