Command: git

本文介绍如何使用git命令查看远程仓库地址,并通过SSH密钥验证确保配置正确。主要内容包括使用'git remote -v'命令显示远程仓库详细信息,以及利用SSH命令测试GitHub上的SSH密钥是否配置正确。

查看远程仓库地址

git remote -v


ssh key verification

verify whether the ssh key configed correctly

$ ssh -T git@github.com

[user@localhost fep_switch]$ GIT_TRACE=1 GIT_CURL_VERBOSE=1 git submodule update --init --recursive 10:58:46.520579 git.c:725 trace: exec: git-submodule update --init --recursive 10:58:46.520616 run-command.c:655 trace: run_command: git-submodule update --init --recursive 10:58:46.531510 git.c:439 trace: built-in: git rev-parse --git-dir 10:58:46.533318 git.c:439 trace: built-in: git rev-parse --git-path objects 10:58:46.536000 git.c:439 trace: built-in: git rev-parse --show-prefix 10:58:46.537084 git.c:439 trace: built-in: git rev-parse --show-toplevel 10:58:46.540258 git.c:439 trace: built-in: git submodule--helper update --recursive --init -- 10:58:46.542987 run-command.c:1524 run_processes_parallel: preparing to run up to 1 tasks 10:58:46.543012 run-command.c:655 trace: run_command: git submodule--helper clone --path ldk_marvell/cpss_work_4.3.10 --name ldk_marvell/cpss_work_4.3.10 --url ssh://shengmingde@gerrit.ep.tp-link.com:29418/SMB/SWITCH/SDK/cpss_work_4.3.10 10:58:46.544305 git.c:439 trace: built-in: git submodule--helper clone --path ldk_marvell/cpss_work_4.3.10 --name ldk_marvell/cpss_work_4.3.10 --url ssh://shengmingde@gerrit.ep.tp-link.com:29418/SMB/SWITCH/SDK/cpss_work_4.3.10 10:58:46.544425 run-command.c:655 trace: run_command: unset GIT_PREFIX; GIT_DIR=.git git clone --no-checkout --separate-git-dir /project/fep_switch/.git/modules/ldk_marvell/cpss_work_4.3.10 -- ssh://shengmingde@gerrit.ep.tp-link.com:29418/SMB/SWITCH/SDK/cpss_work_4.3.10 /project/fep_switch/ldk_marvell/cpss_work_4.3.10 10:58:46.545324 git.c:439 trace: built-in: git clone --no-checkout --separate-git-dir /project/fep_switch/.git/modules/ldk_marvell/cpss_work_4.3.10 -- ssh://shengmingde@gerrit.ep.tp-link.com:29418/SMB/SWITCH/SDK/cpss_work_4.3.10 /project/fep_switch/ldk_marvell/cpss_work_4.3.10 Cloning into '/project/fep_switch/ldk_marvell/cpss_work_4.3.10'... 10:58:46.546841 run-command.c:655 trace: run_command: unset GIT_DIR; GIT_PROTOCOL=version=2 ssh -o SendEnv=GIT_PROTOCOL -p 29418 shengmingde@gerrit.ep.tp-link.com 'git-upload-pack '\''/SMB/SWITCH/SDK/cpss_work_4.3.10'\''' 10:58:50.629573 run-command.c:655 trace: run_command: git index-pack --stdin --fix-thin '--keep=fetch-pack 48930 on localhost.localdomain' --check-self-contained-and-connected 10:58:50.630737 git.c:439 trace: built-in: git index-pack --stdin --fix-thin '--keep=fetch-pack 48930 on localhost.localdomain' --check-self-contained-and-connected 请分析问题
最新发布
08-29
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值