optimize gitconfig environment

1. add gitignore file to global ignore files
2. add gitignore related line into gitconfig accordingly