1.进入到项目根目录 html
2.vim .gitignore git
输入: shell
/public/photos
这个目录就是你要忽略的目录,在提交时将不会提交到git仓库中,仓库的其余协做者同步后也会遵循这个规则。 vim
具体参考:http://www.thinksaas.cn/topics/0/326/326694.html code