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 Basic Git commands | Bitbucket Data Center and Server 8.6 | Atlassian Documentation

Thanks