Re:Moving from GitHub to Codeberg, for lazy people
by messe on Thursday March 26, 2026 @11:03AM
(#47531369)
If you can rsync from the other system, and likely have an SSH connection between them, why don't you just add it as an additional remote and git pull from it directly?
[ Parent
| on HN ]
Re:Moving from GitHub to Codeberg, for lazy people
by freedomben on Thursday March 26, 2026 @11:21AM
(#47531630)
I probably could. How does that work with uncommitted changes on the host? Would that be a problem?
Re:Moving from GitHub to Codeberg, for lazy people
by thwarted on Thursday March 26, 2026 @11:55AM
(#47532063)
If you have ssh access to the remote machine to set up a git remote, you can login to the remote machine and commit the changes that your forgot to commit.
Re:Moving from GitHub to Codeberg, for lazy people
by rlpb on Thursday March 26, 2026 @11:32AM
(#47531778)
You cannot git push something that is not committed. The solution is to commit often (and do it over ssh if you forget on a remote system). It doesn't need to a presentable commit. That can be cleaned up later. I use `git commit -amwip` all the time.
Sure, you might neglect to add a file to your commit, or commit at all, but that's a problem whether you're pushing to a central public git forge or not.
Re:Moving from GitHub to Codeberg, for lazy people
by debugnik on Thursday March 26, 2026 @11:36AM
(#47531819)
You'd create a bare git repo (just the contents of .git) on the host with git init --bare, separate from your usual working tree, and set it as a remote for your working trees, to which you can push and pull using ssh or even a path from the same machine.