#!/bin/bash

git clone --depth 1 https://github.com/github/gitignore ../temp-github-gitignore
find ../temp-github-gitignore -name '*.gitignore' | xargs sed -i 's/ *$//g;$a\'
#!/bin/bash

git clone --depth 1 https://github.com/github/gitignore ../temp-github-gitignore
find ../temp-github-gitignore -type f -print0 | xargs -0 xattr -c
find ../temp-github-gitignore -name '*.gitignore' | xargs sed -i 's/ *$//g;$a\'
Remove extended attirbutes from GitHub's templates
Remove extended attirbutes from GitHub's templates
