Updated link to to GitHub article about ignoring files [ci skip]

- http://help.github.com/ignore-files redirects to https://help.github.com/articles/ignoring-files
dir -> directory [ci skip]
Merge pull request #10479 from frodsan/backport_gitignore_change

Backport gitignore change [ci skip]