Skip to content

Instantly share code, notes, and snippets.

@jonasfroeller
Last active June 28, 2023 16:36
Show Gist options
  • Save jonasfroeller/52a1aec5b4e35bdb6d2a3e7472829e06 to your computer and use it in GitHub Desktop.
Save jonasfroeller/52a1aec5b4e35bdb6d2a3e7472829e06 to your computer and use it in GitHub Desktop.
windows, linux and webdevelopment .gitignore
## Windows ###
# src: https://www.toptal.com/developers/gitignore/api/windows
# Windows thumbnail cache files
**/*Thumbs.db
**/*Thumbs.db:encryptable
**/*ehthumbs.db
**/*ehthumbs_vista.db
# Dump file
**/*.stackdump
# Folder config file
**/[Dd]esktop.ini
# Recycle Bin used on file shares
**/\$RECYCLE.BIN/
# Windows Installer files
**/*.cab
**/*.msi
**/*.msix
**/*.msm
**/*.msp
# Windows shortcuts
**/*.lnk
### Linux ###
# src: https://www.toptal.com/developers/gitignore/api/linux
**/*~
# temporary files which can be created if a process still has a handle open of a deleted file
**/*.fuse_hidden*
# KDE directory preferences
**/*.directory
# Linux trash folder which might appear on any partition or disk
**/*.Trash-*
# .nfs files are created when an open file is removed but is still being accessed
**/*.nfs*
### Dev ###
**/*.idea
**/*.vscode
**/*.code-workspace
**/*node_modules
**/*vendor
# Env
**/*.env*
**/*.pem
# Framework Builds
**/*dist
**/*build
**/*public
@jonasfroeller
Copy link
Author

vsc snippet:

{
  "gitignore": {
    "prefix": "gitignore\r",
    "description": "default gitignore file\r",
    "body": [
      "\r",
      "## Windows ###\r",
      "# src: https://www.toptal.com/developers/gitignore/api/windows\r",
      "\r",
      "# Windows thumbnail cache files\r",
      "**/*Thumbs.db\r",
      "**/*Thumbs.db:encryptable\r",
      "**/*ehthumbs.db\r",
      "**/*ehthumbs_vista.db\r",
      "\r",
      "# Dump file\r",
      "**/*.stackdump\r",
      "\r",
      "# Folder config file\r",
      "**/[Dd]esktop.ini\r",
      "\r",
      "# Recycle Bin used on file shares\r",
      "**/\\$RECYCLE.BIN/\r",
      "\r",
      "# Windows Installer files\r",
      "**/*.cab\r",
      "**/*.msi\r",
      "**/*.msix\r",
      "**/*.msm\r",
      "**/*.msp\r",
      "\r",
      "# Windows shortcuts\r",
      "**/*.lnk\r",
      "\r",
      "### Linux ###\r",
      "# src: https://www.toptal.com/developers/gitignore/api/linux\r",
      "**/*~\r",
      "\r",
      "# temporary files which can be created if a process still has a handle open of a deleted file\r",
      "**/*.fuse_hidden*\r",
      "\r",
      "# KDE directory preferences\r",
      "**/*.directory\r",
      "\r",
      "# Linux trash folder which might appear on any partition or disk\r",
      "**/*.Trash-*\r",
      "\r",
      "# .nfs files are created when an open file is removed but is still being accessed\r",
      "**/*.nfs*\r",
      "\r",
      "### Dev ###\r",
      "**/*.idea\r",
      "**/*.vscode\r",
      "**/*.code-workspace\r",
      "**/*node_modules\r",
      "**/*vendor\r",
      "\r",
      "# Env\r",
      "**/*.env*\r",
      "**/*.pem\r",
      "\r",
      "# Framework Builds\r",
      "**/*dist\r",
      "**/*build\r",
      "**/*public\r",
      ""
    ]
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment