starting to use git remotes against other machines i have at home, works quite n...
Alexander's Intestines @cblgh@merveilles.town
starting to use git remotes against other machines i have at home, works quite nice!
on the other machine i clone my existing repo as a bare repo from the checked out project:
cd /home/user/code/bares
git clone --bare /home/user/my-project
to add this as a remote, named `local`:
git remote add local ssh://USER@MACHINE:/home/user/code/bares/my-project.git
to associate `main` as the default branch:
git remote set-branches local main
after that everything is set up to do:
git push local
git pull local