美文网首页
git 忽略UserInterfaceState.xcusers

git 忽略UserInterfaceState.xcusers

作者: 超_iOS | 来源:发表于2018-07-27 09:42 被阅读64次

1.终端中 open .gitignore

2.将
UserInterfaceState.xcuserstate
Breakpoints_v2.xcbkptlist
添加到.gitignore文件中

  1. git rm --cached + 文件绝对路径
    

文件绝对路径:将文件直接拉到终端获取

4.提交and 推送

解决

补充

当我们需要删除暂存区或分支上的文件, 同时工作区也不需要这个文件了, 可以使用

git rm file_path 

当我们需要删除暂存区或分支上的文件, 但本地又需要使用, 只是不希望这个文件被版本控制, 可以使用

git rm --cached file_path

file_path 为文件路径

相关文章

网友评论

      本文标题:git 忽略UserInterfaceState.xcusers

      本文链接:https://www.haomeiwen.com/subject/mrrwmftx.html