Generator .gitignore file

Image not found

Web path: https://mariusz.wyszomierski.pl/gitignore.io_-700x200.jpg

Disk path: static/gitignore.io_-700x200.jpg

Using Page Bundles: false

What is .gitignore file?

It's a file containing names or pattern names of directories and files, that should't be included in GIT repository.
These are among others files generated by IDE - in case of IntelliJ IDEA it's a directory .idea and file with extension *.iml.

Generator .gitignore

On website https://www.gitignore.io/ you can generate content of .gitignore file for tools, IDE's and frameworks you are using in project.
For example for projects, which using maven and developers are using Intellij IDEA it generates file like below.
Sometimes you should uncomment (delete # from the begining of line) some rules according to your project.

gitignore-example

 1# Created by https://www.gitignore.io/api/maven,intellij
 2
 3### Maven ###
 4target/
 5pom.xml.tag
 6pom.xml.releaseBackup
 7pom.xml.versionsBackup
 8pom.xml.next
 9release.properties
10dependency-reduced-pom.xml
11buildNumber.properties
12.mvn/timing.properties
13
14### Intellij ###
15# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
16
17*.iml
18
19## Directory-based project format:
20.idea/
21# if you remove the above rule, at least ignore the following:
22
23# User-specific stuff:
24# .idea/workspace.xml
25# .idea/tasks.xml
26# .idea/dictionaries
27# .idea/shelf
28
29# Sensitive or high-churn files:
30# .idea/dataSources.ids
31# .idea/dataSources.xml
32# .idea/sqlDataSources.xml
33# .idea/dynamic.xml
34# .idea/uiDesigner.xml
35
36# Gradle:
37# .idea/gradle.xml
38# .idea/libraries
39
40# Mongo Explorer plugin:
41# .idea/mongoSettings.xml
42
43## File-based project format:
44*.ipr
45*.iws
46
47## Plugin-specific files:
48
49# IntelliJ
50/out/
51
52# mpeltonen/sbt-idea plugin
53.idea_modules/
54
55# JIRA plugin
56atlassian-ide-plugin.xml
57
58# Crashlytics plugin (for Android Studio and IntelliJ)
59com_crashlytics_export_strings.xml
60crashlytics.properties
61crashlytics-build.properties
62fabric.properties

Generating .gitignore files from command line

It is possible to generate .gitignore file from command line. For linux you can add handling of new command gi.
Just run below command:

1echo "function gi() { curl -L -s https://www.gitignore.io/api/\$@ ;}" >> ~/.bashrc && source ~/.bashrc

Next you can create .gitignore file running:

1gi maven,intelij >> .gitignore

Translations: