Cannot proceed with update: You have local changes in app "erpnext" that are not committed

Everytime I update erpnext with bench update, I have to use bench update --reset.

And everytime I loose my custom print formats and few other things that I have to set manually.

This is the error I get the error when I do a simple bench update:
Cannot proceed with update: You have local changes in app “erpnext” that are not committed.

so I tried to go in the erpnext folder and do a git stash and got this message:
/home/frappe/frappe-bench/apps/erpnext# git stash
No local changes to save

Any ideas?

1 Like

you should create custom App and store all your Custom Fields and data of Doctype like print formats, Terms & Condition etc in that app. This is the best way to maintain changes done manually in ERP Next.
To do that follow below guide

1 Like

hi @Samuel_Gervais

here is what i do…

once you are in the erpnext apps folder… do

git status

it will show something like this.
image
since it is untracked…

git add .

note the period " . " at the end… this means git will add all untracked file shown in red.

then commit the change

git commit -a

now go back to the frappe-bench folder and do the bench update. follow the same procedure for other apps as well.

1 Like

Thanks I’ll try your suggestions and let you know!