添加远程仓库git remote add
我在之前的章节中已经提到并展示了如何添加远程仓库的示例,不过这里将告诉你如何明确地做到这一点。 运行 git remote add <shortname> <url>
添加一个新的远程 Git 仓库,同时指定一个你可以轻松引用的简写:
git init
git remote add woms-git-test https://git.oschina.net/null_723_7877/gittesxt.git #woms-git-test是远程仓库的别名
git remote -v
woms-git-test https://git.oschina.net/null_723_7877/gittesxt.git (fetch)
woms-git-test https://git.oschina.net/null_723_7877/gittesxt.git (push)