Your project file has not been saved. Save your project file before using source code control operations.

This error has the following cause and solution: