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

【笔记】查看 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-framework
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.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/caffe2
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
submodule.third_party/NNPACK.url=https://github.com/Maratyszcza/NNPACK.git
submodule.third_party/NNPACK_deps/FP16.url=https://github.com/Maratyszcza/FP16.git
submodule.third_party/NNPACK_deps/FXdiv.url=https://github.com/Maratyszcza/FXdiv.git
submodule.third_party/NNPACK_deps/psimd.url=https://github.com/Maratyszcza/psimd.git
submodule.third_party/NNPACK_deps/pthreadpool.url=https://github.com/Maratyszcza/pthreadpool.git
submodule.third_party/android-cmake.url=https://github.com/Yangqing/android-cmake.git
submodule.third_party/aten.url=https://github.com/zdevito/aten
submodule.third_party/benchmark.url=https://github.com/google/benchmark.git
submodule.third_party/cub.url=https://github.com/NVlabs/cub.git
submodule.third_party/eigen.url=https://github.com/RLovelett/eigen.git
submodule.third_party/gloo.url=https://github.com/facebookincubator/gloo
submodule.third_party/googletest.url=https://github.com/google/googletest.git
submodule.third_party/ios-cmake.url=https://github.com/Yangqing/ios-cmake.git
submodule.third_party/nccl.url=https://github.com/nvidia/nccl.git
submodule.third_party/nervanagpu.url=https://github.com/NervanaSystems/nervanagpu.git
submodule.third_party/protobuf.url=https://github.com/google/protobuf.git
submodule.third_party/pybind11.url=https://github.com/pybind/pybind11.git
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值