bash
git+https://github.com/SomePackage#egg=SomePackage
You can even specify a "git ref" such as branch name, a commit hash or a tag name, as shown in the examples below.
Specify a Git branch name
Install SomePackage by specifying a branch name such as main, master, develop, etc, in requirements.txt:
bash
git+https://github.com/SomePackage.git@main#egg=SomePackage
Specify a commit hash
Install SomePackage by specifying a commit hash in requirements.txt:
bash
git+https://github.com/SomePackage.git@eb40b4ff6f7c5c1e4366cgfg0671291bge918#egg=SomePackage
Specify a tag
Install SomePackage by specifying a tag in requirements.txt:
bash
git+https://github.com/SomePackage.git@v1.1.0#egg=SomePackage
