Closed monajalal closed 4 years ago
Hi Mona, my best guess is that this is because Webstorm messed with your .git
directory.
If you have no changes that you would like to preserve in your git repo, then, simply deleting everything(including the .git
directory), and cloning the repo again should work.
I don't think it is related to WebStorm.
Even in the terminal I am getting this error. I never had this problem with Webstorm
(base) mona@goku:~/research/summer2020/openFraming$ git status
On branch master
Your branch is behind 'origin/master' by 17 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
nothing to commit, working tree clean
(base) mona@goku:~/research/summer2020/openFraming$ git pull
error: cannot lock ref 'refs/remotes/origin/UI': there is a non-empty directory '.git/refs/remotes/origin/UI' blocking reference 'refs/remotes/origin/UI'
From https://github.com/davidatbu/openFraming
! [new branch] UI -> origin/UI (unable to update local ref)
I did what @davidatbu suggested. Deleted the repo and git pulled it again and the problem was resolved. I am not sure what might have caused it but glad it is resolved.
I did a git pull in master and got this error