【问题标题】:eclipse github desktop ignore erroreclipse github桌面忽略错误
【发布时间】:2018-05-06 20:46:45
【问题描述】:
error: Your local changes to the following files would be overwritten by merge:
    adminpage/.metadata/.log
    adminpage/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources
    adminpage/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.launching.prefs
    adminpage/.metadata/.plugins/org.eclipse.datatools.sqltools.result/results
    adminpage/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
    adminpage/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/com.genuitec.eclipse.aeri.server1/server-config.json
    adminpage/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/server-config.json
Please commit your changes or stash them before you merge.
Aborting

使用 git hub 桌面。 团队成员用一个 git 分享自己的表现,每次提交都被打印的难度压倒了。 我已经尝试了互联网上的所有内容,我已经尝试过这样做,我已经尝试过这样做,我已经尝试过改变这一点,但我不会经历这些。 我正在使用 Eclipse 创建一个基于 jsp 的 Web 源,但我不知道它有什么问题。 我想在这里得到数百万专家的帮助。

【问题讨论】:

    标签: eclipse git github github-desktop


    【解决方案1】:

    如果可以的话,完全忽略 .metadata/ 文件夹会更容易:

    git rm --cached -r adminpage/.metadata
    echo "adminpage/.metadata/" >> .gitginore
    git add .gitignore
    git commit -m "remote and ignore adminpage/.metadata"
    git push
    

    在仍然跟踪该文件夹的每个分支中重复此操作,并且不应再次出现错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-07-17
      • 1970-01-01
      • 2021-06-01
      • 2017-01-12
      • 1970-01-01
      • 2016-07-31
      • 1970-01-01
      相关资源
      最近更新 更多