随笔分类 - Git
GitLab上配置SSH来拉取代码
摘要:GitLab上配置SSH来拉取代码 1. 生成 SSH 密钥(如果尚未生成) 打开终端(Linux/macOS)或 Git Bash(Windows),运行以下命令生成密钥: ssh-keygen -t ed25519 -C "your_email@example.com" 按回车确认默认保存路径(
git 常用命令
摘要:git 常用命令。 创建SSH Key $ ssh-keygen -t rsa -C "youremail@example.com" 配置用户信息 $ git config --global user.name "Your Name" $ git config --global user.email