在.git 同级目录下新建文本文件 .gitignore, 然后写你想要忽略的文件,支持通配符例如: https://raw.githubusercontent.com/tmux/tmux/master/.gitignore