title: I got error:Repository is not clean. Please commit or stash any changes before updating
body: <p>I want update my project angular6 to angular8.</p>
  
  <p>First:  run <code>npm install -g @angular/cli@latest</code> (this code is ok).</p>
  
  <p>Second: run <code>ng update @angular/cli @angular/core</code>.
  And I got this error:</p>
  
  <blockquote>
    <p>Repository is not clean.  Please commit or stash any changes before
    updating.</p>
  </blockquote>
  
  <p>This is simple angular6 project, just have some basic controller.</p>
  
  <p>when I run <code>ng update @angular/cli @angular/core</code>. I got the error.</p>
  
  <p>package.json</p>
  
  <pre><code>"dependencies": {
    "@angular/animations": "^6.1.7",
    "@angular/common": "^6.1.7",
    "@angular/compiler": "^6.1.7",
    "@angular/core": "^6.1.7",
    "@angular/forms": "^6.1.7",
    "@angular/http": "^6.1.7",
    "@angular/platform-browser": "^6.1.7",
    "@angular/platform-browser-dynamic": "^6.1.7",
    "@angular/router": "^6.1.7",
    "@ng-bootstrap/ng-bootstrap": "^3.2.0",
    "@types/bootstrap": "^3.3.37",
    "@types/jquery": "^3.3.0",
    "bootstrap": "^4.1.3",
    "core-js": "^2.4.1",
    "jquery": "^3.3.1",
    "rxjs": "^6.3.2",
    "rxjs-compat": "^6.0.0-rc.0",
    "zone.js": "^0.8.26"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.8.0",
    "@angular/cli": "^6.2.1",
    "@angular/compiler-cli": "^6.1.7",
    "@angular/language-service": "^6.1.7",
    "@types/jasmine": "~2.8.3",
    "@types/jasminewd2": "~2.0.2",
    "@types/node": "~6.0.60",
    "codelyzer": "^4.4.4",
    "jasmine-core": "~2.8.0",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~2.0.0",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "^1.2.1",
    "karma-jasmine": "~1.1.0",
    "karma-jasmine-html-reporter": "^0.2.2",
    "popper.js": "^1.14.4",
    "protractor": "~5.1.2",
    "ts-node": "~4.1.0",
    "tslint": "~5.9.1",
    "typescript": "~2.9.2"
  }
  </code></pre>
  
  <p>Wow, What should I do?,I stop there whole day.</p>