Error while updating ERPNext to version 7

Hi Everyone,
I have some customization in my app and while updating the ERPNext to version 7 and I got below error messages.

Updating 4dd6b7e..ec6267e
error: Your local changes to the following files would be overwritten by merge:
Please, commit your changes or stash them before you can merge.
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench==3.0.0', 'console_scripts', 'bench')()
  File "/home/vishnu/bench-repo/bench/", line 40, in cli
  File "/usr/local/lib/python2.7/dist-packages/click/", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/", line 696, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/vishnu/bench-repo/bench/commands/", line 60, in update
    _update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
  File "/home/vishnu/bench-repo/bench/commands/", line 76, in _update
  File "/home/vishnu/bench-repo/bench/", line 148, in pull_all_apps
    remote=remote, branch=get_current_branch(app, bench_path=bench_path)), cwd=app_dir)
  File "/home/vishnu/bench-repo/bench/", line 127, in exec_cmd
    raise CommandFailedError(cmd)
bench.utils.CommandFailedError: git pull  upstream master

I appreciate if anyone can help me to find the correct solution for the same.

Ruchin Sharma

Try running these commands
cd apps/frappe/
git stash
cd …/…
bench update
cd apps/frappe/
git stash apply
git stash drop

@Muthu doing the same dear.

Thanks for your quick response

Ruchin Sharma

1 Like

Hi @ruchin78 Also have a note ,

If you want to commit do the following:

git add -A
git commit -a -m'YOUR OWN MESSAGE'
If you want to stash them

git stash