I had troubles updating the dependency from a github branch. For me the solution was to remove the package using the yarn command, then reinstall it:
yarn remove package-name
yarn add package-name@https://github.com/org/repo.git#branch-name