bench.utils.CommandFailedError: git pull

I just face the same
Do this:

  • cd …
  • cd .bench
  • git status
  • git add --all
  • git commit -m “massage”
  • git status
  • sudo git pull
  • cd …
  • cd frappe-bench/
  • bench update