我们查看 git 远程仓库的地址或者更详细的信息,可以使用 git remote 命令。
git remote [options]
参数 | 描述 |
---|---|
options | git remote 命令使用的参数。 |
实例 | 描述 |
---|---|
git remote -v | 查看远程仓库地址。 |
git remote show origin | 查看远程仓库信息。 |
使用 git remote show origin 命令,查看 git 远程仓库的信息比 git remote -v 更详细。
git remote -v
我们使用 git remote 命令,查看当前工作区的 git 远程仓库的地址,具体命令如下:
git remote -v
执行完毕后,如下图所示:
我们看到,显示了远程仓库的地址。
git remote show origin
我们使用 git remote 命令,查看当前工作区的 git 远程仓库的信息,具体命令如下:
git remote show origin
执行完毕后,如下图所示:
我们看到,我们使用了 git remote 命令显示了远程仓库的信息。
我们查看 git 远程仓库的地址或者更详细的信息,可以使用 git remote 命令。