Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I assume that on both machines you have installed Git.</p> <p>Now what you do depends on what services you have installed, that is, how you can connect from one machine to the other.</p> <p>The simplest case is when you have <code>sshd</code> running on the machine you want to clone <em>from</em>, and you can ssh from the machine you want to clone <em>to</em> to the machine you want to clone from.</p> <p>If you can do</p> <pre><code>ssh 192.168.1.2 </code></pre> <p>(or if you have different username on the other machine, <code>ssh user@192.168.1.2</code>), then you should be able to clone via SSH, like <a href="https://stackoverflow.com/questions/2808177/how-can-i-git-clone-from-another-machine/2808221#2808221">Josiah wrote</a>:</p> <pre><code>git clone git+ssh://hap@192.168.1.2/~/working </code></pre> <p>If you want to continue to fetch / push between machines, you should configure public key authentication for SSH, to not have to provide password on each fetch.</p> <hr> <p>If you don't have sshd installed on the source machine, you can clone using "smart" HTTP protocol if you have a web server installed and can install CGI scripts (see <a href="http://www.kernel.org/pub/software/scm/git/docs/git-http-backend.html" rel="nofollow noreferrer">git-http-backend</a> manpage), or you can clone using "dumb" HTTP protocol if you have web server installed, but can only serve static files (you would need to run <code>git update-server-info</code> in source repository first), or you can clone using <a href="http://en.wikipedia.org/wiki/Rsync" rel="nofollow noreferrer">rsync</a> if you have it installed. </p> <p>As a last resort, you can use "<a href="http://www.kernel.org/pub/software/scm/git/docs/git-bundle.html" rel="nofollow noreferrer">git bundle</a>" to create an archive which you can move, for example, using a USB pendrive and clone from it.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload