From f21510cdf7ee689fc36d891eef63cdbce47a61ae Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 22 Jul 2021 16:22:05 -0600 Subject: [PATCH] chore(git): update gitignore, gitattributes --- .gitattributes | 36 +++++++++++++++-------- .gitignore | 80 ++++++++++++++++++++++++++++++++++++++++++++------ 2 files changed, 94 insertions(+), 22 deletions(-) diff --git a/.gitattributes b/.gitattributes index d09c0da..2a2187b 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4,9 +4,6 @@ # https://www.davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/ * text=auto -# JetBrains: Do not touch line endings, but show diff -.idea/** -text - # # The above will handle all files NOT found below # @@ -23,7 +20,7 @@ *.PDF diff=astextplain *.rtf diff=astextplain *.RTF diff=astextplain -*.md text +*.md text diff=markdown *.tex text diff=tex *.adoc text *.textile text @@ -33,6 +30,7 @@ *.tsv text *.txt text *.sql text +*.ps1 text eol=crlf # Graphics *.png binary @@ -56,7 +54,22 @@ # These are explicitly windows files and should use crlf *.bat text eol=crlf *.cmd text eol=crlf -*.ps1 text eol=crlf + +# web frontend stack -- force LF so SRI hashes are always correct +*.html text eol=lf +*.htm text eol=lf +*.css text eol=lf +*.min.css text eol=lf +*.js text eol=lf +*.min.js text eol=lf + +# Visual Studio projects (Rider also) +*.cs diff=csharp +*.sln merge=union +*.csproj merge=union +*.vbproj merge=union +*.fsproj merge=union +*.dbproj merge=union # Serialisation *.json text @@ -72,9 +85,6 @@ *.tgz binary *.zip binary -# Docker build files -Dockerfile text eol=lf - # Text files where line endings should be preserved *.patch -text @@ -82,8 +92,8 @@ Dockerfile text eol=lf # Exclude files from exporting # -.gitattributes export-ignore -.gitignore export-ignore -.gitkeep export-ignore -.vscode export-ignore -.idea export-ignore +.gitattributes export-ignore +.gitignore export-ignore +.gitkeep export-ignore +.idea export-ignore +.vscode export-ignore diff --git a/.gitignore b/.gitignore index 9302a0d..ffd05a2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,72 @@ -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json -!.vscode/numbered-bookmarks.json -*.code-workspace +### JetBrains template +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 -# Local History for Visual Studio Code -.history/ +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/artifacts +# .idea/compiler.xml +# .idea/jarRepositories.xml +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser