Yarn can do that?
yarn add <username/repository>
# Example
yarn add mul14/simplemath
yarn add <git_repository_url>
# GitHub Example
yarn add https://github.com/mul14/simplemath.git
yarn add https://github.com/mul14/simplemath
yarn add git+ssh://git@github.com:mul14/simplemath.git
yarn add git+https://git@github.com/mul14/simplemath.git
# GitLab Example
yarn add https://gitlab.com/mul14/simplemath.git
yarn add https://gitlab.com/mul14/simplemath
yarn add git+ssh://git@gitlab.com:mul14/simplemath.git
yarn add git+https://git@gitlab.com/mul14/simplemath.git