随笔分类 -  git

摘要:错误: remote: HTTP Basic: Access denied remote: You must use a personal access token with ‘api’ scope for Git over HTTP. remote: You can generate one at 阅读全文
posted @ 2022-05-13 14:30 偏执狂傲 阅读(1413) 评论(0) 推荐(0)
摘要:一. 使用git前的步骤: 1. 安装git (安装步骤省略) 2. 使用git设置用户名和邮箱 git config --global user.name "Your Name" git config --global user.email "email@example.com" 二. 使用git 阅读全文
posted @ 2020-12-13 16:54 偏执狂傲 阅读(485) 评论(0) 推荐(0)
摘要:如何用git生成ssh公钥 第一步: 在git中输入 ssh-keygen, 然后默认全部回车。最后会生成如下图的图案 第二步: 根据git生成的地址找到公钥文件 id_rsa.pub 第三步: 打开公钥文件复制公钥代码,在github或码云等代码管理网站中添加ssh公钥 注: 基于密钥的安全验证, 阅读全文
posted @ 2020-12-12 17:39 偏执狂傲 阅读(1641) 评论(0) 推荐(0)
摘要:在文章底部我对工作区和暂存区做了最通俗的解释,看完整篇文章你一定能理解git工作区和暂存区的概念 工作区(Working Directory) 就是你在电脑里能看到的目录,比如我的TM文件夹就是一个工作区 版本库(Repository) 工作区有一个隐藏目录.git,这个不算工作区,而是Git的版本 阅读全文
posted @ 2020-12-12 16:40 偏执狂傲 阅读(526) 评论(0) 推荐(0)