• jaybone@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    3 days ago

    I’ve been considering rsync

    I need to run git operations from a laptop (on a vpn) but I can’t build from the laptop, I can only build from a host that is only accessible on the vpn.

    So I can only git pull / git push from the laptop, but I can only build / run / test from a remote host.

    Linux on both sides. What’s the best solution here?

    • Aux@feddit.uk
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 days ago

      If you can SSH into a remote host, you can git push to it directly from your laptop.

    • Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 days ago

      Why can you not run git on the server? If it’s a credential thing, you can forward it through the SSH connection.

    • PoolloverNathan@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      3 days ago

      Detach the laptop’s head, then git clone from it over SSH on your build server. When you’re done, git push will update your laptop’s branches, then you can git push origin the relevant branches on your laptop.

        • PoolloverNathan@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          3 days ago

          What network topology do you have? My method only assumes server→laptop connectivity (laptop→server and laptop→repo are implied). If server→laptop is unavailable, but you can install Git in general on the server, you could forward the repo through SSH. If Git cannot be installed server-side at all, this is more difficult, and rsync would be the best method I know of.