Place the gitignore and gitattributes files in the base directory of your git repository. The gitconfig contents can go into your global .gitconfig file, in the repo's .git/config file or a custom .gitconfig file. A custom .gitconfig will need to be manually configured by each team member, even if it's in tracked in the repo because it's a security vulnerability.
The gitignore file contains a mashup from the HoloToolkit-Unity gitignore, along with GitHub/gitignore files for Unity and Visual Studio.
The gitconfig file tells git to use Unity's Smart Merge (aka UnityYAMLmerge), which is installed with Unity, to handle YAML merges.
The gitattributes file tells git that those files should be treated as binary and handled by the UnityYAMLmerge tool.
Your Unity project settings should be configured for asset serialization set to Force Text. Menu options should be something similar to Edit -> Project Settings -> Asset Serialization -> Mode.