Git ignore file for Xcode projects

后端 未结 20 1196
栀梦
栀梦 2020-11-22 03:03

Which files should I include in .gitignore when using Git in conjunction with Xcode?

20条回答
  •  不知归路
    2020-11-22 03:31

    We did find that even if you add the .gitignore and the .gitattribte the *.pbxproj file can get corrupted. So we have a simple plan.

    Every person that codes in office simply discards the changes made to this file. In the commit we simple mention the files that are added into the source. And then push to the server. Our integration manager than pulls and sees the commit details and adds the files into the resources.

    Once he updates the remote everyone will always have a working copy. In case something is missing then we inform him to add it in and then pull once again.

    This has worked out for us without any issues.

提交回复
热议问题