linux/.gitignore
<<
>>
Prefs
   1#
   2# NOTE! Don't add files that are generated in specific
   3# subdirectories here. Add them in the ".gitignore" file
   4# in that subdirectory instead.
   5#
   6# NOTE! Please use 'git ls-files -i --exclude-standard'
   7# command after changing this file, to see if there are
   8# any tracked files which get ignored after the change.
   9#
  10# Normal rules (sorted alphabetically)
  11#
  12.*
  13*.a
  14*.asn1.[ch]
  15*.bin
  16*.bz2
  17*.c.[012]*.*
  18*.dt.yaml
  19*.dtb
  20*.dtb.S
  21*.dwo
  22*.elf
  23*.gcno
  24*.gz
  25*.i
  26*.ko
  27*.lex.c
  28*.ll
  29*.lst
  30*.lz4
  31*.lzma
  32*.lzo
  33*.mod
  34*.mod.c
  35*.o
  36*.o.*
  37*.patch
  38*.s
  39*.so
  40*.so.dbg
  41*.su
  42*.symtypes
  43*.tab.[ch]
  44*.tar
  45*.xz
  46Module.symvers
  47modules.builtin
  48modules.order
  49
  50#
  51# Top-level generic files
  52#
  53/tags
  54/TAGS
  55/linux
  56/vmlinux
  57/vmlinux.32
  58/vmlinux-gdb.py
  59/vmlinuz
  60/System.map
  61/Module.markers
  62/modules.builtin.modinfo
  63/modules.nsdeps
  64
  65#
  66# RPM spec file (make rpm-pkg)
  67#
  68/*.spec
  69
  70#
  71# Debian directory (make deb-pkg)
  72#
  73/debian/
  74
  75#
  76# Snap directory (make snap-pkg)
  77#
  78/snap/
  79
  80#
  81# tar directory (make tar*-pkg)
  82#
  83/tar-install/
  84
  85#
  86# We don't want to ignore the following even if they are dot-files
  87#
  88!.clang-format
  89!.cocciconfig
  90!.get_maintainer.ignore
  91!.gitattributes
  92!.gitignore
  93!.mailmap
  94
  95#
  96# Generated include files
  97#
  98/include/config/
  99/include/generated/
 100/include/ksym/
 101/arch/*/include/generated/
 102
 103# stgit generated dirs
 104patches-*
 105
 106# quilt's files
 107patches
 108series
 109
 110# cscope files
 111cscope.*
 112ncscope.*
 113
 114# gnu global files
 115GPATH
 116GRTAGS
 117GSYMS
 118GTAGS
 119
 120# id-utils files
 121ID
 122
 123*.orig
 124*~
 125\#*#
 126
 127#
 128# Leavings from module signing
 129#
 130extra_certificates
 131signing_key.pem
 132signing_key.priv
 133signing_key.x509
 134x509.genkey
 135
 136# Kconfig presets
 137/all.config
 138/alldef.config
 139/allmod.config
 140/allno.config
 141/allrandom.config
 142/allyes.config
 143
 144# Kdevelop4
 145*.kdev4
 146
 147# Clang's compilation database file
 148/compile_commands.json
 149