首页 > 其他 > 详细

git ignore DS_Store

时间:2015-12-14 21:22:00      阅读:208      评论:0      收藏:0      [点我收藏+]

Remove existing files from the repository:

find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch

Add the line

.DS_Store

to the file .gitignore, which can be found at the top level of your repository (or created if it isn‘t there already). Then

git add .gitignore
git commit -m ‘.DS_Store banished!‘





1,查找后缀为.DS_Store的文件:

find . -type f -name *.DS_Store

 2, 列出所有文件,包括隐藏文件

ls -a

3, vim 查找

命令模式下,按‘/’,然后输入要查找的字符,Enter。?和/的区别是,一个向前(下)找,一个向后(上)。 

 

git ignore DS_Store

原文:http://www.cnblogs.com/xjcristal/p/5046449.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!