Sometimes, having a global configuration isn't enough. You will also need to trigger the execution of scripts (also known as Git hooks), exclude files, and so on. It is possible to achieve this with the template option set to git init. It can be given as a command-line option to git clone and git init, or as the $GIT_TEMPLATE_DIR environment variable, or as the configuration option init.templatedir. It defaults to /usr/share/git-core/templates. The template option works by copying files in the template directory to the .git ($GIT_DIR) folder after it has been created. The default directory contains sample hooks and some suggested exclude patterns. In the following example, we'll see how we can set up a new template directory, and add a commit message hook and an exclude file.
            United States
            
            Great Britain
            
            India
            
            Germany
            
            France
            
            Canada
            
            Russia
            
            Spain
            
            Brazil
            
            Australia
            
            Singapore
            
            Canary Islands
            
            Hungary
            
            Ukraine
            
            Luxembourg
            
            Estonia
            
            Lithuania
            
            South Korea
            
            Turkey
            
            Switzerland
            
            Colombia
            
            Taiwan
            
            Chile
            
            Norway
            
            Ecuador
            
            Indonesia
            
            New Zealand
            
            Cyprus
            
            Denmark
            
            Finland
            
            Poland
            
            Malta
            
            Czechia
            
            Austria
            
            Sweden
            
            Italy
            
            Egypt
            
            Belgium
            
            Portugal
            
            Slovenia
            
            Ireland
            
            Romania
            
            Greece
            
            Argentina
            
            Netherlands
            
            Bulgaria
            
            Latvia
            
            South Africa
            
            Malaysia
            
            Japan
            
            Slovakia
            
            Philippines
            
            Mexico
            
            Thailand