命令:git config core.excludesfile ~/gitignore.txt [root@11:17:02]$ cat ~/gitignore.txt *.o *.so *.a *.cmd *.svn *.git