this post was submitted on 22 Mar 2025
1090 points (94.2% liked)
linuxmemes
24305 readers
1478 users here now
Hint: :q!
Sister communities:
Community rules (click to expand)
1. Follow the site-wide rules
- Instance-wide TOS: https://legal.lemmy.world/tos/
- Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
3. Post Linux-related content
sudo
in Windows.4. No recent reposts
5. 🇬🇧 Language/язык/Sprache
6. (NEW!) Regarding public figures
We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.Please report posts and comments that break these rules!
Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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?
If you can SSH into a remote host, you can git push to it directly from your laptop.
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 cangit push origin
the relevant branches on your laptop.I can’t run git operations on the server.
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.
Yes, rsync is a good choice
Why can you not run git on the server? If it's a credential thing, you can forward it through the SSH connection.
It authenticates with a yubikey.