Please help, git ignores the way the file is written, give an example
PHP中文网
PHP中文网 2017-05-02 09:24:23
0
2
619

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中文网

认证高级PHP讲师

reply all(2)
曾经蜡笔没有小新
  1. *.classpath

  2. .metedata/demo/*

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

  4. *.class

phpcn_u1582

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template