创建.gitignore,以及删除.DS_Store
1.查看其他文件里面是否有.gitignore
cd——>ls -al——>cat .gitignore——>复制打印所有内容
2.在工程中导入.gitignore
cd——>vi .gitignore粘贴刚刚复制的所有内容——>ls -al
3.提交
git status——>git add .git——>git add .gitignore——>git status——>git add *——>git status——>git commit -m "add gitignore"——>git push origin master——>ls -al
4.删除.DS_Store
cd——>ls -al——>rm -rf .DS_Store——>git status——>git add *——>it status——>git add .DS_Store——>git status——>git commit -m "remove .DS_Store"——>git push origin master
5.如果没成功
find /Users/Xintong_Jiang/Documents/Project/ComeOut -name .DS_Store——>rm -rf /Users/Xintong_Jiang/Documents/Project/ComeOut/ComeOut/Classes/Main/Controller/.DS_Store——>gitstatus——>git add Classes/Main/Controller/.DS_Store——>git commit -m "remove .DS_Store"——>git push origin master