I think this will solve it:
If when running bench update get error like this:
bench.utils.CommandFailedError: git pull
Do the following if you haven’t made local changes to files in the application:
- go to folder
/home/frappe/frappe-bench/apps/erpnext
and run the following command:
git reset --hard
git pull
- go to folder
/home/frappe/frappe-bench/apps/frappe
and run the following command:
git reset --hard
git pull
- go to folder
/home/frappe/.bench
and run the following command:
git reset --hard
git pull
- Finally goto
/home/frappe/frappe-bench
and run:
bench update