.gitignore for Lazarus

20 ignore rules for Lazarus, ready to copy into your repository.

Free Pascal IDE

The complete .gitignore for Lazarus

# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-02-13 19:40:37 UTC
# Technologies: Lazarus

### Lazarus ###
# Windows executable
*.exe
# Dynamic link library
*.dll
# Shared object
*.so
# macOS dynamic library
*.dylib
*.lrs
*.res
*.compiled
*.dbg
*.ppu
# Object file
*.o
*.or
# Static library
*.a
*.rst
*.rsj
*.lrt
*.lps
backup/
# Backup file
*.bak
# Library directory
lib/
*.app/

What these Lazarus rules actually ignore

Every pattern below, and why it belongs in your .gitignore.

Lazarus compiler-generated binaries (safe to delete)

Pattern What it ignores
*.exe Windows executable
*.dll Dynamic link library
*.so Shared object
*.dylib macOS dynamic library
*.lrs Lazarus compiler-generated binaries (safe to delete)
*.res Lazarus compiler-generated binaries (safe to delete)
*.compiled Lazarus compiler-generated binaries (safe to delete)
*.dbg Lazarus compiler-generated binaries (safe to delete)
*.ppu Lazarus compiler-generated binaries (safe to delete)
*.o Object file
*.or Lazarus compiler-generated binaries (safe to delete)
*.a Static library

Lazarus autogenerated files (duplicated info)

Pattern What it ignores
*.rst Lazarus autogenerated files (duplicated info)
*.rsj Lazarus autogenerated files (duplicated info)
*.lrt Lazarus autogenerated files (duplicated info)

Lazarus local files (user-specific info)

Pattern What it ignores
*.lps Lazarus local files (user-specific info)

These can be changed by user in Lazarus/project options.

Pattern What it ignores
backup/ These can be changed by user in Lazarus/project options.
*.bak Backup file
lib/ Library directory

Application bundle for Mac OS

Pattern What it ignores
*.app/ Application bundle for Mac OS

How to use this .gitignore for Lazarus

  1. Copy the Lazarus rules above, or download the file directly.
  2. Create a file named .gitignore at the root of your Git repository and paste the rules into it.
  3. If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
  4. Commit the .gitignore so everyone on the team shares the same rules.

Other IDE .gitignore templates

See every IDE template