Resolve git error: “cannot lock ref”

error: cannot lock ref ‘refs/remotes/origin/branch-A’: is at 0123456789DASfasdf but expected 9999asdfqwerqwer

Fix:
1. Open FETCH_HEAD and remove all of branches that have ” branch-A” keyword
2. Remove file in folder .git/refs/remotes/origin/branch-A