Encountering 'unable to resolve reference' error when locking ref 'origin/windows'. Get solutions for 'Not a directory' issue.