I regularly work with private Github repositories and from time to time want to pull down PRs and test them out as part of an integration test. I’ve had to Google the right syntax for this many times. No more.
To install a branch from a private repository in a project using
requirements.txt files, replace the line containing the actual requirement with the following:
forkis the account holder of the fork, normally a github username, e.g.,
projectis the actual name of the project, e.g.,
branchis the branch used for the PR, e.g.,