• astrsk@fedia.io
    link
    fedilink
    arrow-up
    15
    ·
    2 days ago

    Just a reminder that as long as you don’t need any kind of platform hosting or complex multi-user setup, git itself works fine on a remote machine as your server, even just on LAN. (As always, just setup an ssh key on the two machines so ssh commands are secure and don’t require passwords all the time)

    > cd /my/repos
    > ssh user@10.x.y.z ‘mkdir /home/user/repos/new_repo.git && cd $_ && git init --bare’
    > git clone user@10.x.y.z:/home/user/repos/new_repo.git