git – Repository is not clean. Please commit or stash any changes before updating In Angular 8

Question:

Error

Repository is not clean. Please commit or stash any changes before updating

when i have updated from version 7 to Angular 8.

Angular Guide for upgrade https://update.angular.io/#7.0:8.0

Repository is not clean. Please commit or stash any changes before updating.

Update Version

i have checked git was not installed in project.

solution that worked

After Googling i have This is happening After Angular 8.

Bug

https://github.com/angular/angular-cli/issues/14600

Answer:

It’s a bug in Angular 8

you can work around it by using:

ng update @angular/cli @angular/core --allow-dirty

Leave a Reply