第一种1.git add --ignore-errors .
特别注意 git add --ignore-errors .
errors后面有一个空格再加一个点' .'
第二种:
1.touch .gitignore;
2.添加要省略的文件
.vs/