Error in update ERPNext

How to solve this ?

Hi @nilpatel42:

Seems you’ve made changes directly on code …
See this:

Hope this helps.

i entered command bench update --reset

but this new error popup

fatal: ambiguous argument 'upstream/version-14': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
ERROR: git reset --hard upstream/version-14
subprocess.CalledProcessError: Command 'git reset --hard upstream/version-14' returned non-zero exit status 128.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/vul/.local/bin/bench", line 8, in <module>
  File "/home/vul/.local/lib/python3.10/site-packages/bench/", line 132, in cli
  File "/home/vul/.local/lib/python3.10/site-packages/bench/commands/", line 59, in update
  File "/home/vul/.local/lib/python3.10/site-packages/bench/utils/", line 442, in update
    pull_apps(apps=apps, bench_path=bench_path, reset=reset)
  File "/home/vul/.local/lib/python3.10/site-packages/bench/", line 659, in pull_apps, cwd=app_dir)
  File "/home/vul/.local/lib/python3.10/site-packages/bench/", line 48, in run
    return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
  File "/home/vul/.local/lib/python3.10/site-packages/bench/utils/", line 158, in exec_cmd
    raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: git reset --hard upstream/version-14