Question: A co-worker and I have been working on the same branch for a week, constantly pushing/pulling changes and all of a sudden today, I hit 'pull' to see if there were any changes I needed to pull and I got an error.

This is in sourcetree by the way. The error was this:

```
git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin
error: cannot lock ref 'refs/remotes/origin/angular_removal': unable to resolve reference 'refs/remotes/origin/angular_removal': reference broken
From https://bitbucket.org/colossus
 ! [new branch]        angular_removal -> origin/angular_removal  (unable to update local ref)

```

I'm in sourcetree, which has a terminal built in, but I can't seem to find a resolution here.

Answer: 
I had a similar issue, but I couldn't push my commit from my local branch to the remote branch. Looking inside sourcetree under my remote branches, my branch suddenly didn't exist.
I tried @Dudar answer, but the branch wasnt mentioned in the packed-refs file.
So what I did was:

1. go into .git\refs\remotes\origin\feature subfolder of my local repository;
2. delete the file named as my branch causing the issue;
3. push my changes

Note: My branch existed in a subfolder of origin called "feature".
Update ref.

```
$ git update-ref -d refs/remotes/origin/[branchname]

```