Git self-built server, you can use git remote add origin git@server:.

problem description

in the process of using Liao Xuefeng"s self-built website on git, I just took the same steps as him first, which can be cloned to the local and used normally.
but: when I git init a folder locally. Want to use: git remote add origin git@. directly At the time of command, this is a new warehouse, not the original sample.git, is it because I made a mistake, or is it just not possible to simply build a git server in this way

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Git
Mar.31,2022

initialize it on the remote machine first. The
prompt is clear that the remote directory is not a git repository.
execute git init-- bare in this directory.

Menu