-- Leo's gemini proxy
-- Connecting to gemini.splashgel.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
Create your local repository first and add your code in the usual way
git init git add main.c git commit -m "initial version"
Create the remote repository using ssh replacing MACHINE and NAMEOFPROJECT with the hostname/IP and project name respectively
ssh git@MACHINE git init --bare NAMEOFPROJECT.git
Then add the remote to your local project and push your changes
git remote add origin git@MACHINE:NAMEOFPROJECT.git git push --set-upstream origin master
And you're done. Next time you just need to do git push.
On the other side
git clone git@MACHINE:NAMEOFPROJECT.git
-- Response ended
-- Page fetched on Sat May 18 23:41:35 2024