Here's what i had to do to fix the problem.
- Close the workspaces,
- Go to Organiser/Repositories,
- then for each relevant project, select in left column and remove by clicking '-'
- quit XCode
- verify/clean .git/config
- verify/clean .gitmodules
- reopen XCode
- open workspace