I have an Xcode project that is under version control. I’ve grouped the classes in the project navigator into folders based on what the classes do (eg. Models, Views, Controllers, etc.). However, these folder structures seem local to my machine and it is not reflected in my own local git repository, or if I do a git pull from another machine, the folders that I’ve created or organized my classes into don’t appear. So, How do you get the changes you make (organizing the classes into folders) to reflect in your local and remote repository?
Share
I found that the adding a folder or directory manually inside the local repository to work for me. Create the folder in the repository,
git add folder_name/to actually track and add it to the repo. The files then can be moved into this folder. Depending on how you move it, you may need to dogit rm <file_name>andgit add </folder_name/file_name>.