Getting error When updating erpnext version

Hi All i am trying to update erpnext version ERPNext: v11.1.32 (master)
Frappe Framework: v11.1.30 (master) to version 13 and i am getting error …
what i should do ? can i update 11 to 13 directly?
Your suggestions will be helpful for me…
Thanks in Advance

getting this error when i run cmd in bench: bench switch-to-branch v12 erpnext

Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/.bench/bench/”, line 41, in cli
File “/usr/local/lib/python2.7/dist-packages/click/”, line 764, in call
return self.main(args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 717, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 555, in invoke
return callback(args, **kwargs)
File “/home/frappe/.bench/bench/commands/”, line 43, in switch_to_branch
switch_to_branch(branch=branch, apps=list(apps), upgrade=upgrade)
File “/home/frappe/.bench/bench/”, line 417, in switch_to_branch
switch_branch(branch, apps=apps, bench_path=bench_path, upgrade=upgrade)
File “/home/frappe/.bench/bench/”, line 389, in switch_branch
version_upgrade = is_version_upgrade(app=app, bench_path=bench_path, branch=branch)
File “/home/frappe/.bench/bench/”, line 283, in is_version_upgrade
raise InvalidBranchException(“Specified branch of app {0} is not in upstream”.format(app)) Specified branch of app erpnext is not in upstream
frappe@bombaygold-1622695016008-s-1vcpu-2gb-blr1-01:~/frappe-bench$ bench switch-to-branch version-12 frappe erpnext --upgrade
LOG: Fetching upstream for frappe
$ git remote set-branches upstream '

$ git fetch --all
Fetching upstream
Switching for frappe
$ git checkout version-12
error: Your local changes to the following files would be overwritten by checkout:
Please, commit your changes or stash them before you can switch branches.
ERROR: Switching branches failed for: frappe
LOG: Fetching upstream unshallow for erpnext
$ git remote set-branches upstream '

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.