this post was submitted on 17 May 2025
44 points (92.3% liked)

Programming

20215 readers
252 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 15 points 1 day ago (1 children)

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 [email protected] ‘mkdir /home/user/repos/new_repo.git && cd $_ && git init --bare’
> git clone [email protected]:/home/user/repos/new_repo.git
[–] [email protected] 5 points 1 day ago

Or if you want some basic configuration, like user management and repo creation. Use something lightweight like gitolite