Help on transferring to develop to run v5

root@cctvph:~# bench switch-to-develop

error: Your local changes to the following files would be overwritten by checkout:
frappe/public/images/ui/random-polygons.jpg
Please, commit your changes or stash them before you can switch branches.
Aborting
Error: None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/bench-repo/bench/cli.py”, line 55, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/frappe/bench-repo/bench/cli.py”, line 301, in _switch_to_develop
switch_to_develop()
File “/home/frappe/bench-repo/bench/app.py”, line 153, in switch_to_develop
switch_branch(‘develop’, apps=apps, bench=bench)
File “/home/frappe/bench-repo/bench/app.py”, line 147, in switch_branch
exec_cmd(“git checkout {branch}”.format(branch=branch), cwd=app_dir)
File “/home/frappe/bench-repo/bench/utils.py”, line 72, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘git checkout develop’ returned non-zero exit status 1

Probably you lost the internet connection while trying this.

No sir. i tried it many times.

i changed the desktop image and renamed it also as random-polygons.jpg maybe that is the problem.

Yes it is! There is an option to change it from the UI

Still cant switch to develop. i want to switch to v5 sir. here is the error

root@cctvph:~# bench switch-to-develop
remote: Counting objects: 43, done.
remote: Compressing objects: 100% (43/43), done.
remote: Total 43 (delta 36), reused 7 (delta 0), pack-reused 0
Unpacking objects: 100% (43/43), done.
From https://github.com/frappe/frappe
4472af6…ce9d3de develop -> upstream/develop
error: Your local changes to the following files would be overwritten by checkout:
frappe/public/images/ui/random-polygons.jpg
Please, commit your changes or stash them before you can switch branches.
Aborting
Error: None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/bench-repo/bench/cli.py”, line 55, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/frappe/bench-repo/bench/cli.py”, line 301, in _switch_to_develop
switch_to_develop()
File “/home/frappe/bench-repo/bench/app.py”, line 153, in switch_to_develop
switch_branch(‘develop’, apps=apps, bench=bench)
File “/home/frappe/bench-repo/bench/app.py”, line 147, in switch_branch
exec_cmd(“git checkout {branch}”.format(branch=branch), cwd=app_dir)
File “/home/frappe/bench-repo/bench/utils.py”, line 72, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘git checkout develop’ returned non-zero exit status 1

You still have local changes

how do i commit it sir?

or how do i stash them sir?

https://www.google.com/search?q=how+to+git+stash

Still cant switch to develop. it says

root@cctvph:/home/frappe/bench-repo# git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean

Check the repositories on the frappe-bench/apps/ folders