Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't commit Xcode project with Git integration

I am trying to get GitHub working through Xcode and have been having quite a bit of trouble. When I click commit (under File/Source Control) I get this error message:

The operation could not be performed because no valid working copies were found. Please verify that your files are under source control and try again.

This happens whether I create a new project and click the "create with local git repository" box, or if I clone an existing project from github using the organizer's repository tab.

For some reason I am able to commit if I am in the organizer in the repositories tab, have my projects folder under the repository selected and click commit. This works, but from there I cannot push my update to github, since the push option is "grayed out" in the file menu.

Can anyone help me fix this? I would love to be able to push updates right through Xcode.

like image 574
initWithStyle Avatar asked Dec 06 '11 02:12

initWithStyle


1 Answers

If your project is in /Developer/.... move it elsewhere and reopen the project. This may resolve your problem.

There seems to be a problem under Xcode 4.2 with projects in /Developer/... and git integration (you get the error "The operation could not be performed because no valid working copies were found. Please verify that your files are under source control and try again")

like image 55
januszb Avatar answered Sep 16 '22 14:09

januszb