Commonly seen on GitHub and here on SO ( Import existing source code to GitHub ):
git@github.com:/youruser/somename.git
vs git@github.com:/youruser/somename
I accidentally added a git remote without the *.git extension and it worked fine. I only noticed it after pushing up a new branch.
Is there any need for the *.git extension?
不,您可以跳过.git
:git存储库托管服务(在GitHub上,但是您与gitolite,GitLab或Gitorious会发现相同)通常知道如何仅从名称中查找完整的存储库路径(不带.git
。 )
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.