When updating bench - CommandFailedError: git pull upstream develop

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:

  1. go to folder /home/frappe/frappe-bench/apps/erpnext
    and run the following command:
git reset --hard
git pull
  1. go to folder /home/frappe/frappe-bench/apps/frappe
    and run the following command:
git reset --hard
git pull
  1. go to folder /home/frappe/.bench
    and run the following command:
git reset --hard
git pull
  1. Finally goto /home/frappe/frappe-bench
    and run:
bench update
16 Likes