关于gitignore可以参考 https://github.com/github/gitignore ，多数语言都整理得挺好的，可以从它开始再做自己的修改。

例如golang: https://github.com/github/gitignore/blob/master/Go.gitignore
```
# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so

# Folders
_obj
_test

# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out

*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*

_testmain.go

*.exe
```