Recently I needed to test a branch of a forked GitHub repository inside a project. Instead of cloning the fork and symlinking the package locally, I installed the remote dependency directly into the project.
To achieve I used the following command:
npm install user/repo.git#branchname
yarn add ssh://firstname.lastname@example.org:user/repo.git#branchname
💡 If you’re targeting a specific commit or tag, replace
branchname with the