How to update erpnext?

I tried to do update erpnext which is in the version-15 branch. Now i need to get the latest release from the branch. How can I do that?

Try running bench update command

If i run bench update I’m getting the below message
Cannot proceed with update: You have local changes in app “frappe” that are not committed.

Here are your choices:

  1. Merge the frappe app manually with “git pull” / “git pull --rebase” and fix conflicts.
  2. Temporarily remove your changes with “git stash” or discard them completely
    with “bench update --reset” or for individual repositries “git reset --hard”
  3. If your changes are helpful for others, send in a pull request via GitHub and
    wait for them to be merged in the core.

What is unclear to you, regarding this message?

If you did not change the source code or do not want to keep the changes, you can run bench update --reset.

If you did change the source code and want to keep the changes, you’ll have to take care of saving your changes in some way before downloading the other changes that are in the new release.

1 Like

There was an oldish bug

with similar symptoms, finally squashed by Ankush

Dont add `__init__.py` file when developer mode isn't active · Issue #16618 · frappe/frappe · GitHub,

and which was caused not by uncommited/unstashed changes, but by some other – and surprising, unexpected – mechanism in the state of the framework at the time.

That said, the site at Git is a good read for getting to know git better and understand what these messages normally mean.