首页
统计
留言板
关于
Search
1
Rust 包装 objc Block
86 阅读
2
02. Rust 内存管理 Copy & Clone(上)
85 阅读
3
Flutter 调用 Rust 生成的 共享/静态 库
79 阅读
4
纯 C 写个 iOS App(误)
67 阅读
5
用 Rust 开发 iOS 应用(粗糙版)
64 阅读
默认分类
Rust
Apple
iOS
Swift
Android
emulator
NES
登录
/
注册
Search
标签搜索
Rust
iOS
NES
Swift
Android
杂项
limit
累计撰写
18
篇文章
累计收到
0
条评论
首页
栏目
默认分类
Rust
Apple
iOS
Swift
Android
emulator
NES
页面
统计
留言板
关于
搜索到
1
篇与
的结果
2022-10-16
GitHub SSH 设置
记录一下在 Mac 上设置 GitHub 的 SSH keys。设置 Git 用户先在终端执行一下 git config --global --list,看看当前设备的 git 有没有设置好相关的用户名跟邮箱。 有的话就会正常显示user.name=Your Name user.email=your-name@example.com如果没有的话,就会出现类似这种错误fatal: unable to read config file '~/.gitconfig': No such file or directory既然没有那就设置一下git config --global user.name "Your Name" git config --global user.email "Your Email"设置完成后要想确认一下,就重新执行git config --global --list生成 SSH Key这个就比较容易,直接执行这条命令,主要是设置一下邮箱地址ssh-keygen -t rsa -C "your-email-address"一路回车就行,一般会显示下面这些内容,具体内容以自己的系统为准Generating public/private rsa key pair. Enter file in which to save the key (~/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in ~/.ssh/id_rsa. Your public key has been saved in ~/.ssh/id_rsa.pub. The key fingerprint is: SHA256:IuTZyVphdJVuRBBYBjCYtCTD1rJcgumXe0oXdErnUeo limitliu@qq.com The key's randomart image is: +---[RSA 2048]----+ |=o+oo.o+B*o. | |oOo+ =.*. o | |+ * = B..o | | + = B.+ o | | . = BES. | | o * . | | . = | | . | | | +----[SHA256]-----+生成后把内容拷贝到自己的剪贴板,public key 文件生成在哪可以看上面执行后的结果,里面有对应文件路径,我这里生成得文件是在 ~/.ssh/id_rsa.pub 这个路径,Mac 可以直接这样执行这条命令来复制cat ~/.ssh/id_rsa.pub | pbcopy其实就是通过管道符把 cat 到的内容传给 pbcopy,也就是传给 Mac 的剪贴板。在 GitHub 上设置这一步就是正常的打开 GitHub 网站,登录自己需要配置的那个账号,点击头像有个 Settings,然后再点击 SSH and GPG keys(不想手动找就直接点这个链接跳转),我这里只设置 SSH keys。点击 New SSH key然后就会打开下面这些东西,照着图片做就行
2022年10月16日
42 阅读
0 评论
0 点赞