摘要: 配置 GitHub 和 Gitee 共存环境 前言 Git支持多级配置,分别是system(系统级)、global(用户级)、local(项目级)和worktree(工作区级),其中常用的就用户级和项目级。 在Linux中,用户和项目级配置 global ~/.gitconfig: 用户级配置文件; 阅读全文
posted @ 2021-10-10 21:11 Librarookie 阅读(545) 评论(2) 推荐(0) 编辑
摘要: Git本地仓库关联远程GitHub仓库 环境 工具准备 GitHub账号注册 git客户端工具下载 Git 配置 git config --global user.name "your_name" git config --global user.email "your_email@example. 阅读全文
posted @ 2021-10-10 18:43 Librarookie 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Git 命令大全 基础命令 |Key|Value| | | | |git status|查看状态| |git init|初始化成git仓库| |git add [file]|加入到暂存区| |git add -A|将所有文件的修改加入暂存区| |git rm --cached [file]...|从 阅读全文
posted @ 2021-10-10 18:39 Librarookie 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 生成和添加 SSH 公钥 生成 打开 Terminal(终端) 生成命令 ssh-keygen -t ed25519 -C "your_email@example.com" note:如果您使用的是不支持 Ed25519 算法的旧系统,请使用 RSA,感兴趣的可以点击Ed25519 和 RSA 详情 阅读全文
posted @ 2021-10-10 18:28 Librarookie 阅读(2953) 评论(0) 推荐(0) 编辑
摘要: RSA、DSA、ECDSA、EdDSA 和 Ed25519 的区别 用过ssh的朋友都知道,ssh key的类型有很多种,比如dsa、rsa、 ecdsa、ed25519等,那这么多种类型,我们要如何选择呢? 说明 RSA,DSA,ECDSA,EdDSA和Ed25519都用于数字签名,但只有RSA也 阅读全文
posted @ 2021-10-10 17:05 Librarookie 阅读(25090) 评论(3) 推荐(5) 编辑