Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: The source control operation failed because the revisions

Tags:

git

xcode7

I've installed Xcode 7, and now always get this message when I select "commit" from xcode menu.

"The source control operation failed because the revisions... could not be found."

Any idea? :)

error message

like image 776
Franck Avatar asked Sep 16 '15 22:09

Franck


1 Answers

That could happen if the state of the git repo isn't proper:

  • file outside if a git repo, or
  • no commit yet (initial first commit), or
  • no files added to the index

(there was also repo of XCode 7 crashing on git commit)

Go to the parent folder of the modified file, and to a git status, to check what is actually going on.
Check also (just after seeing that error message) the /Applications/Utilities/Console.app in case there are more clues (as it was done before for this other error bug report)

like image 160
VonC Avatar answered Sep 17 '22 09:09

VonC