常用终端命令的精选集合,通过标签,描述和标题搜索难以记住的终端命令

官网地址:

https://www.commands.dev/

例如:克隆一个给定SSH密钥路径的git仓库,并将其配置为使用所需的Name和Email

Command 命令

git -c core.sshCommand='ssh -i ~/.ssh/id_rsa -o IdentitiesOnly=yes' clone <repo_url> <target_folder>
cd <target_folder>
git config core.sshCommand 'ssh -i ~/.ssh/id_rsa'
git config user.name "Jhon Doe"
git config user.email johndoe@example.com

发表回复

后才能评论