【笔记】查看 git项目的地址及子模块

来源:互联网 发布:js控制浏览器最小宽度 编辑:程序博客网 时间:2024/06/06 04:56

【笔记】查看 git项目的地址及子模块

使用命令git config -l

例如:
下载 spring-framework 的代码:
在 spring-framework 目录下,执行git config -l

可以看到:remote.origin.url=https://github.com/spring-projects/spring-framework

$ git config -l略remote.origin.url=https://github.com/spring-projects/spring-frameworkremote.origin.fetch=+refs/heads/*:refs/remotes/origin/*branch.master.remote=originbranch.master.merge=refs/heads/master

例如,下载 caffe2 的代码:
在 caffe2 目录下,执行git config -l
可以看到remote.origin.url=https://github.com/caffe2/caffe2以及子模块submodule.xxx

$ git config -l略submodule.active=.remote.origin.url=https://github.com/caffe2/caffe2remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*branch.master.remote=originbranch.master.merge=refs/heads/mastersubmodule.third_party/NNPACK.url=https://github.com/Maratyszcza/NNPACK.gitsubmodule.third_party/NNPACK_deps/FP16.url=https://github.com/Maratyszcza/FP16.gitsubmodule.third_party/NNPACK_deps/FXdiv.url=https://github.com/Maratyszcza/FXdiv.gitsubmodule.third_party/NNPACK_deps/psimd.url=https://github.com/Maratyszcza/psimd.gitsubmodule.third_party/NNPACK_deps/pthreadpool.url=https://github.com/Maratyszcza/pthreadpool.gitsubmodule.third_party/android-cmake.url=https://github.com/Yangqing/android-cmake.gitsubmodule.third_party/aten.url=https://github.com/zdevito/atensubmodule.third_party/benchmark.url=https://github.com/google/benchmark.gitsubmodule.third_party/cub.url=https://github.com/NVlabs/cub.gitsubmodule.third_party/eigen.url=https://github.com/RLovelett/eigen.gitsubmodule.third_party/gloo.url=https://github.com/facebookincubator/gloosubmodule.third_party/googletest.url=https://github.com/google/googletest.gitsubmodule.third_party/ios-cmake.url=https://github.com/Yangqing/ios-cmake.gitsubmodule.third_party/nccl.url=https://github.com/nvidia/nccl.gitsubmodule.third_party/nervanagpu.url=https://github.com/NervanaSystems/nervanagpu.gitsubmodule.third_party/protobuf.url=https://github.com/google/protobuf.gitsubmodule.third_party/pybind11.url=https://github.com/pybind/pybind11.git
原创粉丝点击