I often need to clone a private Git repo from GitHub onto an embedded Linux system for native compilation. The only problem is that, to clone a private repo from GitHub, there must be a public key registered for each system. To do this for every embedded system is a total pain. However, a Linux machine that has the repo on it already can act as a local server very easily.
On the embedded system, clone the repo using this command:
git clone ssh://user@
git clone ssh://firstname.lastname@example.org/home/richard/veryinterestingrepo
would clone the repo veryinterestingrepo from the directory /home/richard on the machine at 192.168.10.2 using user name richard. At some point Git will ask for the password for user richard. Once this is entered, the clone should work as expected. Pulls and pushes will work as normal as they use the remote from which the repo was cloned.