search

Home  >  Q&A  >  body text

Please help, git ignores the way the file is written, give an example

Hello everyone,

我已经建立了全局的忽略文件.gitignore_global
并且把他注册到系统中git config --global core.excludesfile ~/.gitignore_global

但是,仍然不起作用。已经确定这些文件不在staged中。

以下是几个例子,麻烦大家帮我看看如何写规则

git库中,管理了30个项目,要求忽略的规则一样
  1. Ignore all .classpath files

  2. All files under .metedata/demo/

  3. /exten/demo/makefile/.../output/...Ignore all sub-files in the output directory,...represents that the directory may have multiple levels.

  4. Ignore all .class files in multi-level directories.

    I use eclipse. Thanks.

PHP中文网PHP中文网2808 days ago625

reply all(2)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-02 09:26:23

    1. *.classpath

    2. .metedata/demo/*

    3. /exten/demo/makefile//output/

    4. *.class

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-02 09:26:23

    https://www.gitignore.io/
    You can try this

    reply
    0
  • Cancelreply