【问题标题】:EGit - Committing java documentationEGit - 提交 java 文档
【发布时间】:2017-02-10 09:44:02
【问题描述】:

我在 GitHub 上使用 EGit。

当我使用 EGit 提交代码并将其推送到 GitHub 时,它只显示没有 javadoc 的代码。
EGit 中是否有偏好将其关闭? (导出所有代码)

在 Eclipse 中:

在 GitHub 中:

【问题讨论】:

  • 详细说明如何将代码从 egit 移动到 github 哪些命令

标签: java eclipse git javadoc egit


【解决方案1】:

在 egit 中是否有关闭此功能的偏好? (导出所有代码)

否:除非你有一个clean content filer(在一个.gitattributes 文件中),并且文本文件将全部推送到 GitHub。

OP Cedric van den Berg 报告 in the comments 解决了过滤器问题:

$ git config --global filter.indent.clean indent
$ git config --global filter.indent.smudge cat 

【讨论】:

  • 很难找到那个过滤器,但是当有了 git shell 后这个问题就解决了,进入存储库并输入:$ git config --global filter.indent.clean indent, $ git config --global filter.indent.smudge cat
  • @CedricvandenBerg 太好了!我已将您的评论包含在答案中以提高知名度。
  • @CedricvandenBerg 不要忘记阅读stackoverflow.com/help/accepted-answer
猜你喜欢
  • 2014-04-07
  • 2011-03-05
  • 1970-01-01
  • 2013-09-28
  • 1970-01-01
  • 1970-01-01
  • 2012-05-09
  • 1970-01-01
  • 2012-03-13
相关资源
最近更新 更多