mac环境下安装git并配置密钥等

文章目录

下载

https://git-scm.com/

复制代码
git --version

配置

  1. 邮箱用户名

    git config --global user.name "名字"
    git config --global user.email "邮箱"

  1. 密钥

生成密钥,输入完按3次回车。

复制代码
ssh-keygen -t ed25519 -C "邮箱"
  1. 复制公钥到gitlab

    open ~/.ssh/id_rsa.pub

点击头像,点击ssh,添加你的密钥即可。

相关推荐
weixin_4624462310 小时前
Git 本地忽略 application-dev.yml 的最佳实践:不提交 .gitignore,不影响团队协作!
git
goodmao15 小时前
【macOS】【mouse】设置鼠标大小
macos·计算机外设·鼠标·mouse
Magnum Lehar15 小时前
macos信息采集器appledataharvester-3
macos·网络安全·系统安全
川川菜鸟17 小时前
Claude Code 安装与配置完整指南(Mac)
macos
无限进步_18 小时前
面试题 02.02. 返回倒数第 k 个节点 - 题解与详细分析
c语言·开发语言·数据结构·git·链表·github·visual studio
2401_8590490818 小时前
git submodule update --init --recursive无法拉取解决
前端·chrome·git
WarmSword18 小时前
mac上用cursor/vscode调试root权限进程
c++·ide·vscode·macos·mac
Magnum Lehar19 小时前
macos的信息采集器appledataHarvester-2
macos·网络安全·系统安全
echo-niuben20 小时前
macOS 端已如何正常安装并配置XcodeBuildMCP ?
macos
刘某某.21 小时前
Mac上缺失宋体字体,只有宋体-简
macos