存储库名称末尾的“.git”在本地 git 存储库、远程存储库位置中是否重要?

Is ".git" at end of repository name important in local git repository, remote repository location?

我一直都意识到,我一直在使用 https://github.com/userName/repoName 为 git 中的本地存储库设置远程位置。但是,到处都使用 .git 后缀作为 https://github.com/userName/repoName.git 来设置遥控器。我相信 .git 用于指示该位置是 git(版本控制)存储库。

但是,如果我一直忽略 .git 真的很重要吗?我应该修改本地存储库的远程吗?

就个人而言,到目前为止我没有遇到任何问题。所以我想,这只是一种命名约定之类的东西,不必太在意这个。

令我略感意外的是,我认为这是一个可以回答的问题。

But, does it really matter, if I had ignored the .git all this time. Should I modify the remote of my local repositories?

你的遥控器指向 GitHub,他们的服务显然不会 404 一个 url 没有结束 .git 没有检查它是否适用于 [=10] =] 附加。因此,对于您的本地存储库,没有实际理由让您更改遥控器的 urls:它们可以工作。不,这并不重要。对于那些 url。因为 GitHub 了解您要做什么。