转自http://blog.csdn.net/li396864285/article/details/72738895
gitignore可以防止不相关系统自动产生的文件提交到git上。该文件放置到git项目的根目录下,能够让git忽略符合.gitignore中文件后缀的文件,不会被添加到git版本控制中。
.gitignore中的文件后缀列表大多是系统自动产生的,上传到git是毫无意义的。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177
| # DIY target/
# svn .svn/ # Linux System *~
# KDE directory preferences .directory
# Linux trash folder which might appear on any partition or disk .Trash-*
# Windows System # Windows image file caches Thumbs.db ehthumbs.db
# Folder config file Desktop.ini
# Recycle Bin used on file shares $RECYCLE.BIN/
# Windows Installer files *.cab *.msi *.msm *.msp
# Windows shortcuts *.lnk
# OSX System .DS_Store .AppleDouble .LSOverride
# Icon must end with two \r Icon
# Thumbnails ._*
# Files that might appear in the root of a volume .DocumentRevisions-V100 .fseventsd .Spotlight-V100 .TemporaryItems .Trashes .VolumeIcon.icns
# Directories potentially created on remote AFP share .AppleDB .AppleDesktop Network Trash Folder Temporary Items .apdisk
# Eclipse *.pydevproject .metadata .gradle bin/ tmp/ *.tmp *.bak *.swp *~.nib local.properties .settings/ .loadpath
# Eclipse Core .project
# External tool builders .externalToolBuilders/
# Locally stored "Eclipse launch configurations" *.launch
# CDT-specific .cproject
# JDT-specific (Eclipse Java Development Tools) .classpath
# Java annotation processor (APT) .factorypath
# PDT-specific .buildpath
# sbteclipse plugin .target
# TeXlipse plugin .texlipse
# JetBrains # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio
*.iml
## Directory-based project format: .idea/ # if you remove the above rule, at least ignore the following:
# User-specific stuff: # .idea/workspace.xml # .idea/tasks.xml # .idea/dictionaries
# Sensitive or high-churn files: # .idea/dataSources.ids # .idea/dataSources.xml # .idea/sqlDataSources.xml # .idea/dynamic.xml # .idea/uiDesigner.xml
# Gradle: # .idea/gradle.xml # .idea/libraries
# Mongo Explorer plugin: # .idea/mongoSettings.xml
## File-based project format: *.ipr *.iws
## Plugin-specific files:
# IntelliJ /out/
# mpeltonen/sbt-idea plugin .idea_modules/
# JIRA plugin atlassian-ide-plugin.xml
# Crashlytics plugin (for Android Studio and IntelliJ) com_crashlytics_export_strings.xml crashlytics.properties crashlytics-build.properties
# JAVA *.class
# Mobile Tools for Java (J2ME) .mtj.tmp/
# Package Files # *.jar *.war *.ear
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid*
#Maven target/ **/target/ pom.xml.tag pom.xml.releaseBackup pom.xml.versionsBackup pom.xml.next release.properties dependency-reduced-pom.xml buildNumber.properties .mvn/timing.properties
logs/
|