ERPNext switch to staging branch

How to Switch ERPNext App into staging branch ??

i am using bench switch-to-branch staging erpnext…

but it says no upstream master branch is exist.

update git config file of erpnext repo as below:

[remote "upstream"]
	url = https://github.com/frappe/erpnext
	fetch = +refs/heads/*:refs/remotes/upstream/*
[branch "master"]
	remote = upstream
	merge = refs/heads/master
[branch "staging"]
	remote = upstream
	merge = refs/heads/staging
[branch "develop"]
	remote = upstream
	merge = refs/heads/develop

and thereafter run below commands:

bench switch-to-branch staging erpnext
bench setup requirements
bench clear-cache
bench --site site-name migrate
bench update --patch
bench restart

4 Likes

Thanks its worked.

I think you should switch-to-branch staging frappe as well

Yes erpnext and frappe should be on same branch and versions in sync Install script and V11 - #25 by clarkej