首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Git - Neo4JPHP不会添加到提交

Git - Neo4JPHP不会添加到提交
EN

Stack Overflow用户
提问于 2015-06-02 19:25:15
回答 1查看 29关注 0票数 1

我有一个php项目,其中我使用neo4Jphp作为依赖项:

代码语言:javascript
复制
"everyman/neo4jphp": "dev-master"

它会根据需要加载库,但当我执行以下操作时:

代码语言:javascript
复制
commit add -A

它添加了供应商/ne4jphp,但没有低于该级别的内容。

结果是neo4jphp库没有提交,我不能把它推送到我的远程存储库。

我认为这可能与.gitignore有关,但我不这么认为:

代码语言:javascript
复制
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm

*.iml

    ## Directory-based project format:
    .idea/
    # if you remove the above rule, at least ignore the following:

    # User-specific stuff:
    # .idea/workspace.xml
    # .idea/tasks.xml
    # .idea/dictionaries

    # Sensitive or high-churn files:
    # .idea/dataSources.ids
    # .idea/dataSources.xml
    # .idea/sqlDataSources.xml
    # .idea/dynamic.xml
    # .idea/uiDesigner.xml

    # Gradle:
    # .idea/gradle.xml
    # .idea/libraries

    # Mongo Explorer plugin:
    # .idea/mongoSettings.xml

    ## File-based project format:
    *.ipr
    *.iws

    ## Plugin-specific files:

    # IntelliJ
    out/

    # mpeltonen/sbt-idea plugin
    .idea_modules/

    # JIRA plugin
    atlassian-ide-plugin.xml

    # Crashlytics plugin (for Android Studio and IntelliJ)
    com_crashlytics_export_strings.xml
    crashlytics.properties
    crashlytics-build.properties

你知道是什么原因造成的吗?

EN

回答 1

Stack Overflow用户

发布于 2015-06-02 19:47:07

好的,所以问题是Neo4Jphp是作为一个子模块添加的,因此,它没有提交并推送到我的存储库。

我不得不将它从我的git模块列表中删除,添加全部并提交:

代码语言:javascript
复制
git rm -f --cached path_to_submodule
git add -A
git commit -m "commit message"

我在remove中使用了-f,否则它对我不起作用(可能是因为它是另一个git存储库的子模块,它把我的git搞得一团糟)。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30594751

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档