How to install an extension from a Git repository

A post was split to a new topic: How to install an extension not from a Git repository?