What does the “.git” mean in a git URL?

后端 未结 4 1543
名媛妹妹
名媛妹妹 2021-02-20 02:06

I setup a git repo in foo

cd
mkdir foo
cd foo
git init

Now I want to reference that remotely

git clone git+ssh://me@somemachine         


        
4条回答
  •  独厮守ぢ
    2021-02-20 02:59

    It's a common (but certainly not universal) convention that bare git repositories are created in directories whose names end with .git. That's the reason that you usually see .git at the end of repository URLs.

    I'm not sure about the git+ssh scheme - in fact I can't find a reference to it in the git man pages. According to the Eclipse forums the protocol has been removed in favor of plain old ssh. (The Eclipse forums are of course not an official source of information about git, but that would make sense. I never knew what the difference was supposed to be anyway.)

提交回复
热议问题