Add global .gitignore option

ref:
1. http://stackoverflow.com/a/7335487
2. http://stackoverflow.com/a/16780799