git remote add origin https://github.com//blog.git

问:

git remote add origin https://github.com//blog.git

回答:

这条命令是将本地仓库与 GitHub 上的一个名为 "blog" 的远程仓库关联起来,关联的方式是通过添加一个名为 "origin" 的远程地址,这个地址指向了你在 GitHub 上的仓库。这样就可以使用 git push 命令将本地代码推送到远程仓库中。

猜你喜欢

转载自blog.csdn.net/kuang_nu/article/details/133442068