ERPNext Update from V11 to Version 12

go to the erpnext app folder, run this command:

git config remote.upstream.fetch "+refs/heads/*:refs/remotes/upstream/*"

and then run bench switch-to-version 12 from frappe-bench folder.

Reference: