项目迁移

项目从OSC上迁移到GitLab,发现每次提交都出现了.DS_Store文件差异,可是明明我添加过了.gitignore,还是有。

解决办法:

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!'


你可能感兴趣的:(项目迁移)