Home > Mobile >  Random Xcode files are modified/added/deleted in Git
Random Xcode files are modified/added/deleted in Git

Time:08-12

I am using Github desktop to source control my app, but it keeps changing/deleting/adding all sorts of files that I did not touch, assets, pod files, and I do not know what is going on or how to stop it. Any help here?

I re-cloned my repo and still having the issue

enter image description here

enter image description here

CodePudding user response:

They are build artefacts, Pods, and other things you should've excluded from your repo. Use gitignore.io to create a proper .gitignore file, and add it to root folder of your repo (e.g. like this). Then delete all this junk from your repo.

I also recommend reading Apple's guide on working with Source Control

CodePudding user response:

like sfgblackwarkrts already said these "random" files are artefacts, pods etc. They will be created everytime you made any changes in one of them E.g. updating your pods, changing packages,..

To see how a .gitignore file can be created and managed, you can find a question and the correct answers to it on Stackoverflow.

git - how to create a .gitignore file

  • Related