I am unable to pull changes from the remote repository due to the following error. I am trying to pull from the master branch of this repository.
c:\supportal>git pull
error: cannot lock ref 'refs/remotes/origin/KANBAN': unable to resolve
reference refs/remotes/origin/KANBAN: Invalid argument
From https://github.cerner.com/ApplicationServices/supportal
! [new branch] KANBAN -> origin/KANBAN (unable to update local
ref)
error: cannot lock ref 'refs/remotes/origin/kanban': unable to resolve
reference refs/remotes/origin/kanban: Invalid argument
! [new branch] kanban -> origin/kanban (unable to update local
ref)
The remote repository KANBAN was an old working directory that I am not using anymore. Not sure how to fix this.
I tried the following, which did not work: git remote prune origin
$ git gc --prune=now
error: bad ref for refs/remotes/origin/kanban
fatal: bad object refs/remotes/origin/kanban
error: failed to run repack
I also removed the remote origin reference and re-added it, then ran a git pull but that did not fix it as well..