GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - gitattributes/gitattributes: A collection of useful .gitattributes templates

BranchesTags
Open more actions menu

Latest commit

 

History

405 Commits
405 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
Global
Global
 
 
community
community
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
ActionScript.gitattributes
ActionScript.gitattributes
 
 
Ada.gitattributes
Ada.gitattributes
 
 
C++.gitattributes
C++.gitattributes
 
 
CSharp.gitattributes
CSharp.gitattributes
 
 
Common.gitattributes
Common.gitattributes
 
 
Delphi.gitattributes
Delphi.gitattributes
 
 
Drupal.gitattributes
Drupal.gitattributes
 
 
DyalogAPL.gitattributes
DyalogAPL.gitattributes
 
 
Elixir.gitattributes
Elixir.gitattributes
 
 
Fortran.gitattributes
Fortran.gitattributes
 
 
Go.gitattributes
Go.gitattributes
 
 
Java.gitattributes
Java.gitattributes
 
 
LICENSE
LICENSE
 
 
Lua.gitattributes
Lua.gitattributes
 
 
Markdown.gitattributes
Markdown.gitattributes
 
 
Mathematica.gitattributes
Mathematica.gitattributes
 
 
Matlab.gitattributes
Matlab.gitattributes
 
 
MicrosoftShell.gitattributes
MicrosoftShell.gitattributes
 
 
ObjectiveC.gitattributes
ObjectiveC.gitattributes
 
 
PHP.gitattributes
PHP.gitattributes
 
 
Pascal.gitattributes
Pascal.gitattributes
 
 
Perl.gitattributes
Perl.gitattributes
 
 
PowerShell.gitattributes
PowerShell.gitattributes
 
 
Python.gitattributes
Python.gitattributes
 
 
R.gitattributes
R.gitattributes
 
 
README.md
README.md
 
 
Rails.gitattributes
Rails.gitattributes
 
 
Rust.gitattributes
Rust.gitattributes
 
 
Servoy.gitattributes
Servoy.gitattributes
 
 
Swift.gitattributes
Swift.gitattributes
 
 
TinaCMS.gitattributes
TinaCMS.gitattributes
 
 
Unity.gitattributes
Unity.gitattributes
 
 
Vim.gitattributes
Vim.gitattributes
 
 
Web.gitattributes
Web.gitattributes
 
 
check.sh
check.sh
 
 

Repository files navigation

A Collection of Useful .gitattributes Templates

Similarly to the .gitignore Templates, we're trying to build templates for .gitattributes.

Common.gitattributes contains general exclusions that may apply to any project. Consider including them if they are applicable to your project.

Usage

For more information on gitattributes: gitattributes(5) and for Github-specific grammar: Linguist docs

You can use this handy dandy generator to generate your gitattributes files on the fly based on files inside of this repository.

CI step

To check if all files have a corresponding rule in .gitattributes, this script can be used:

missing_attributes=$(git ls-files | git check-attr -a --stdin | grep 'text: auto' || printf '\n')

if [ -n "$missing_attributes" ]; then
  printf '%s\n%s\n' '.gitattributes rule missing for the following files:' "$missing_attributes"
else
  printf '%s\n' 'All files have a corresponding rule in .gitattributes'
fi

You can also use the checked-in ./check.sh which has more features. Run ./check.sh --help for the available options.

Contributing

Please contribute by forking and sending a pull request.

Also please only modify one file per commit. This'll make merging easier for everyone.

About

A collection of useful .gitattributes templates

Topics

gitgitattributesgitattributes-templates

Resources

Readme
MIT license
Activity
Custom properties

Stars

3.9k stars

Watchers

60 watching

Forks

592 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.