I following the official support of sonarqub http://docs.sonarqube.org/display/SONAR/SCM+support
and I got the error at above.
did I miss something need to c
This is because when running an analysis, SonarQube expects that all files should be committed.
Indeed, SonarQube assumes that when you run a standard analysis (that pushes data to the server), there should not be any uncommitted changes on a single file of the project, because this would potentially push information that won't be relevant with the real source code on the repository. That's why the analysis will fail.
This is obviously not the case when you run a preview analysis: as this kind of analysis does not push data to the server and only reports issues locally, then it's not a problem to have uncommitted changes and the analysis will therefore not fail.
I've updated the documentation to make this clearer.