git - 查看远程仓库信息
2015-04-10 15:04
387 查看
可以通过命令
除了对应的克隆地址外,它还给出了许多额外的信息。它友善地告诉你如果是在 master 分支,就可以用
上面的例子非常简单,而随着使用 Git 的深入,
它告诉我们,运行
git remote show [remote-name]查看某个远程仓库的详细信息,比如要看所克隆的
origin仓库,可以运行:
$ git remote show origin * remote origin URL: git://github.com/schacon/ticgit.git Remote branch merged with 'git pull' while on branch master master Tracked remote branches master ticgit
除了对应的克隆地址外,它还给出了许多额外的信息。它友善地告诉你如果是在 master 分支,就可以用
git pull命令抓取数据合并到本地。另外还列出了所有处于跟踪状态中的远端分支。
上面的例子非常简单,而随着使用 Git 的深入,
git remote show给出的信息可能会像这样:
$ git remote show origin * remote origin URL: git@github.com:defunkt/github.git Remote branch merged with 'git pull' while on branch issues issues Remote branch merged with 'git pull' while on branch master master New remote branches (next fetch will store in remotes/origin) caching Stale tracking branches (use 'git remote prune') libwalker walker2 Tracked remote branches acl apiv2 dashboard2 issues master postgres Local branch pushed with 'git push' master:master
它告诉我们,运行
git push时缺省推送的分支是什么(译注:最后两行)。它还显示了有哪些远端分支还没有同步到本地(译注:第六行的
caching分支),哪些已同步到本地的远端分支在远端服务器上已被删除(译注:
Stale tracking branches下面的两个分支),以及运行
git pull时将自动合并哪些分支(译注:前四行中列出的
issues和
master分支)。
相关文章推荐
- git - 查看远程仓库信息
- 查看远程git仓库的信息
- git查看远程仓库信息
- git 查看远程仓库的信息 以及 git fetch 和git pull 的区别
- 1git命令的使用,查看git仓库状态,添加文件到git跟踪,git提交,查看git分支,查看git仓库日志信息,切换git分支,解决git分支合并后出现冲突的问题
- git查看远程仓库地址命令
- git 查看远程仓库
- 查看远程仓库:git remote
- git 查看远程分支提交信息,不合并
- git remote命令查看远程仓库信息时,出现new ( next fetch will store in remotes/origin)提示
- git查看远程仓库地址命令
- git查看远程仓库地址
- git查看远程仓库地址 git remote -v
- 1git命令的使用,查看git仓库状态,添加文件到git跟踪,git提交,查看git分支,查看git仓库日志信息,切换git分支,解决git分支合并后出现冲突的问题
- git 分支的 创建 修改 切换 查看 从远程仓库抓取数据 以及 提交时忽略某文件
- git查看远程分支相关信息
- 服务器上出现应用程序错误。此应用程序的当前自定义错误设置禁止远程查看应用程序错误的详细信息
- git远程仓库
- 基于本地文件或者本地Git仓库创建远程Git仓库
- git 查看 对应人的修改信息