title: Sync a git repository between two local devices without internet connection
body: <p>I have a repository <code>repo</code> on github and I have its clone on my local system (<code>mac</code>) which I use to make edits and push on daily basis; <code>mac</code> has an internet connection for doing this.</p>
  <p>But the project is deployed on a NVIDIA Jetson device <code>jetson</code> which does not have access to an internet connection at all times. (This is because I have disabled dhcp to provide a static IP to its <code>eth0</code> interface.) For deployment and testing, I use various <code>ssh</code> tools to migrate the code from <code>mac</code> to <code>jetson</code>.</p>
  <p>How can I sync the repository on <code>mac</code> and <code>jetson</code> which only communicate via <code>ssh</code> ?</p>