【问题标题】:Folder not synchronizing with Git and Bitbucket文件夹未与 Git 和 Bitbucket 同步
【发布时间】:2012-08-12 21:42:18
【问题描述】:

我正在使用带有 git 远程存储库的 Eclipse。

由于某种原因,有一个文件夹(以及所有子文件夹)未与远程存储库同步。这些文件夹中的已修改文件不带有星号 (*),因此,它们无法暂存或提交。

当我进入 www.bitbucket.org 查看我的项目时,我在该文件夹中看到的只是我的“无文件夹”名称旁边带有蓝色箭头的图标,而不是常规文件夹图标,是出现在可以访问和同步良好的文件夹旁边的那个。

选项 --> 团队 --> 添加到索引不起作用。 git add <folder>两者都没有

我做错了什么?有什么想法吗?

非常感谢

佩德罗

这里有 git 状态转储:

# On branch master
# Changes not staged for commit:
#   (use "git add/rm <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#   (commit or discard the untracked or modified content in submodules)
#
#   modified:   .project
#   modified:   app/AppKernel.php
#   modified:   app/bootstrap.php.cache
#   deleted:    app/cache/dev/annotations/Acme-DemoBundle-Controller-DemoController    #contactAction.cache.php
#   deleted:    app/cache/dev/annotations/Acme-DemoBundle-Controller-DemoController    #helloAction.cache.php
#   deleted:    app/cache/dev/annotations/Acme-DemoBundle-Controller-DemoController    #indexAction.cache.php
#   deleted:    app/cache/dev/annotations/Acme-DemoBundle-Controller-DemoController.cache.php
#   deleted:    app/cache/dev/annotations/Xtremapp-DemoBundle-Controller-SecuredController    #loginAction.cache.php
#   deleted:    app/cache/dev/annotations/Xtremapp-DemoBundle-Controller-SecuredController    #logoutAction.cache.php
#   deleted:    app/cache/dev/annotations/Xtremapp-DemoBundle-Controller-SecuredController    #securityCheckAction.cache.php
#   deleted:    app/cache/dev/annotations/Xtremapp-DemoBundle-Controller-SecuredController.cache.php
#   deleted:    app/cache/dev/annotations/Xtremapp-DemoBundle-Controller-WelcomeController    #indexAction.cache.php
#   modified:   app/cache/dev/appDevDebugProjectContainer.php
#   modified:   app/cache/dev/appDevDebugProjectContainer.php.meta
#   modified:   app/cache/dev/appDevDebugProjectContainer.xml
#   modified:   app/cache/dev/appDevDebugProjectContainerCompiler.log
#   modified:   app/cache/dev/appdevUrlGenerator.php
#   modified:   app/cache/dev/appdevUrlGenerator.php.meta
#   modified:   app/cache/dev/appdevUrlMatcher.php
#   modified:   app/cache/dev/appdevUrlMatcher.php.meta
#   deleted:    app/cache/dev/assetic/config/0/064cba00a41b006ad8ca939936416158.php
#   modified:   app/config/config.yml
#   modified:   app/config/config_dev.yml
#   modified:   app/config/routing.yml
#   modified:   app/config/routing_dev.yml
#   modified:   app/config/security.yml
#   modified:   deps
#   modified:   src/Acme/StoreBundle/Controller/ConfigurationController.php
#   modified:   src/Acme/StoreBundle/Resources/translations/messages.es.yml
#   modified:   src/Acme/StoreBundle/Resources/views/layout.html.twig
#   modified:   vendor/bundles/FOS/UserBundle (modified content, untracked content)
#   modified:   vendor/doctrine (modified content, untracked content)
#   modified:   vendor/symfony (modified content)
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   .gitignore
#   .settings/
#   app/AcmeStoreBundle.php
#   app/Common/
#   app/Resources/
#   app/cache/dev/annotations/Acme-StoreBundle-Controller-ConfigurationController    #confAction.cache.php
#   app/cache/dev/annotations/Acme-StoreBundle-Controller-ConfigurationController    #configurationAction.cache.php
#   app/cache/dev/annotations/Acme-StoreBundle-Controller-ConfigurationController    #saveConfigurationAction.cache.php
#   app/cache/dev/twig/98/
#   app/cache/dev/twig/99/
#   app/cache/dev/twig/9b/
#   app/cache/dev/twig/a0/
#   app/cache/dev/twig/a4/
#   app/cache/dev/twig/ac/
#   app/cache/dev/twig/ae/
#   app/cache/dev/twig/b0/
#   app/cache/dev/twig/b3/
#   app/cache/dev/twig/b9/
#   app/cache/dev/twig/bb/
#   app/cache/dev/twig/bc/
#   app/cache/dev/twig/bd/
#   app/cache/dev/twig/c0/3a/
#   app/cache/dev/twig/c0/89/
#   app/cache/dev/twig/c2/
#   app/cache/dev/twig/c5/
#   app/cache/dev/twig/c6/
#   app/cache/dev/twig/c8/
#   app/cache/dev/twig/c9/
#   app/cache/dev/twig/ca/
#   app/cache/dev/twig/ce/
#   app/cache/dev/twig/e4/
#   app/cache/dev/twig/ec/
#   app/cache/dev/twig/ee/
#   app/cache/dev/twig/ef/
#   app/cache/dev/twig/f0/
#   app/cache/dev/twig/f3/
#   app/cache/dev/twig/f4/
#   app/cache/dev/twig/f6/
#   app/logs/
#   src/Acme/StoreBundle/.DS_Store
#   src/Acme/StoreBundle/Resources/.DS_Store
#   src/Acme/StoreBundle/Resources/views/Configuration/
#   web/bundles/fosjsrouting

使用 .gitignorer 重新编辑我想要包含但不包含的文件夹之一。 phpunit.xml 测试/autoload.php NB项目 目录.xml 推进/om/* 推进/地图/*

!vendor/vendors.php
!vendor/*

【问题讨论】:

    标签: eclipse git git-cvs


    【解决方案1】:

    您是否将文件夹/子文件夹/文件添加到您的存储库?

    右键单击文件夹->团队->添加到索引

    【讨论】:

    • 其实,是的,有。但似乎 eclipse 对这个选项没有任何作用。没有确认消息、操作或更改。哪个是从终端尝试的命令?
    • 不...所以疏远了一切...我尝试过使用 git add 文件夹名称。它显然是这样做的,因为它没有给出任何错误。但是,当我回到 eclipse 和远程 git 存储库时,它仍然没有同步。有点迷失在这里:/
    • 你能发布git status的输出吗?
    • 在那里我发布了编辑原始帖子。请注意,我删除了许多与缓存文件夹有关的行,以使文本适合帖子。我认为我的 git 真的搞砸了!包括所有缓存文件夹(根本没有意义)。而且,正如我所要求的,存储库中缺少其他重要文件夹。没有 git add 文件夹对我有用:(还有其他帮助吗?
    • .gitignore 的内容是什么?
    猜你喜欢
    • 1970-01-01
    • 2019-07-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多