Bench switch-to-master correct procedure

Hello,
I have a running erpnext from develop branch but I would like to switch to a more stable version. I tried to do “bench switch-to-master” from the frappe-bench directory but always get an error saying “Current branch of ‘frappe’ not in upstream”.
What is the correct procedure to switch?
Thanks,
Matej

Hi @matej.baric,
please go to the frappe-bench/apps/erpnext folder and use the git command.
for more detail see this link https://confluence.atlassian.com/bitbucketserver/basic-git-commands-776639767.html

Thanks