Skip to content

Git ignore template

General Repository

## General
# Ignore MS Office tempory files
~$*

# ignore macos system page files
.DS_Store

# ignore idea config files
/.idea/

# ignore target files
/target/

# ignore log files
/log/

# Visual Studio user specific files
.vs/

## Java
# Ignore .class files
*.class

# ignore application.properties (prevent database password different)
src/main/resources/application.properties

## Git LFS
# Using git lfs track "*.xxx" to track binary files
# First download git lfs from https://git-lfs.com/
# template: git lfs track "*."

# Office files
git lfs track "*.doc"
git lfs track "*.docx"
git lfs track "*.ppt"
git lfs track "*.pptx"
git lfs track "*.xls"
git lfs track "*.xlsx"
git lfs track "*.pdf"

# compress files
git lfs track "*.rar"
git lfs track "*.zip"
git lfs track "*.7z"

# binary files
git lfs track "*.exe"
git lfs track "*.msi"

# image files
git lfs track "*.png"
git lfs track "*.jpg"
git lfs track "*.jpeg"
git lfs track "*.bmp"
git lfs track "*.tiff"
git lfs track "*.gif"
git lfs track "*.webp"

# video files
git lfs track "*.mp4"
git lfs track "*.avi"
git lfs track "*.rmvb"
git lfs track "*.mov"
git lfs track "*.mkv"

# audio files
git lfs track "*.mp3"
git lfs track "*.m4a"
git lfs track "*.wav"
git lfs track "*.flac"

# font files
git lfs track "*.ttf"
git lfs track "*.woff2"
git lfs track "*.otf"

Unreal Engine Repository

# Visual Studio 2015 user specific files
.vs/

# Rider
.idea/

# Visual Studio 2015 database file
*.VC.db

# Compiled Object files
*.slo
*.lo
*.o
*.obj
*.pdb
*.modules
*.target

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib

# Fortran module files
*.mod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app
*.ipa

# These project files can be generated by the engine
*.xcodeproj
*.xcworkspace
*.sln
*.suo
*.opensdf
*.sdf
*.VC.db
*.VC.opendb

# Precompiled Assets
SourceArt/**/*.png
SourceArt/**/*.tga

# Binary Files
Binaries/*
Plugins/*/Binaries/*

# Builds
Build/*

# Whitelist PakBlacklist-<BuildConfiguration>.txt files
!Build/*/
Build/*/**
!Build/*/PakBlacklist*.txt

# Don't ignore icon files in Build
!Build/**/*.ico

# Configuration files generated by the Editor
Saved/*

# Compiled source files for the engine to use
Intermediate/*
Plugins/*/Intermediate/*

# Cache files for the editor to use
DerivedDataCache/*

# Use git lfs
# First download git lfs from https://git-lfs.com/

# Unreal Engine file types.
git lfs track "*.uasset"
git lfs track "*.map"

# Raw Content file types.
git lfs track "*.fbx"
git lfs track "*.3ds"
git lfs track "*.psd"
git lfs track "*.png"
git lfs track "*.mp3"
git lfs track "*.wav"
git lfs track "*.jpg"
git lfs track "*.xcf"

# Anything in `/RawContent` dir.
git lfs track /RawContent/**/*

# ignore Texture file
# Content/*/Textures

# ignore RiderLink Plugin
Plugins/Developer/RiderLink

Last update: May 10, 2023
Created: May 10, 2023