Git failed to recognize adding .xcscheme files to xcode project
Added a new schema matching the test target in my xcode project. The newly created xcscheme file is not reflected in git. Also, running git status shows me not committing anything, working directory clean .
Trying to add it via terminal using git add .xcscheme says
The following paths are ignored by one of your .gitignore files: MyProject.xcodeproj / xcshareddata / xcschemes / MyProjectTests.xcscheme Use -f if you really want to add them
When checking my .gitignore file, it is completely empty.
I have looked at posts that require schemas to be split, but that didn't help. Went through this thread, Bitbucket was showing no changes to the theme directory . But for me there are no .git or .gitignore files inside any .xcodeproj file or xcschemes directory.
How can I remove these restrictions so that I can add a new xcscheme file to the repo, or are there any other settings I need to change?
source to share
There are several places for gitignore settings. Check them all.
See documentation such as http://git-scm.com/docs/gitignore
source to share