- To copy gitignore file you need to copy this file to you local repo.
cp file1.gitignore path_to_repo/.gitignore
- To create one .gitignore file consisting of several git-ignore-file you need to write:
cat file1.gitignore file2.gitignore > path_to_repo/.gitignore