摘要: error 点击查看代码 error: failed to push some refs to 'xxxx' hint: Updates were rejected because the remote contains work that you do hint: not have locally 阅读全文
posted @ 2022-02-25 20:08 sqw666 阅读(1154) 评论(0) 推荐(0) 编辑
摘要: 配置一个远程库 查看当前fork配置的远程仓库 $ git remote -v > origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (fetch) > origin https://github.com/YOUR_USERNAME/YOUR 阅读全文
posted @ 2021-11-20 17:48 sqw666 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 如何生成SSH key ssh-keygen -t rsa -C "youremail@example.com" 运行这串代码之后会在/users/用户名/.ssh/文件夹下找到两个文件:id_rsa和id_rsa.pub. id_rsa.pub里存有生成的公钥,这个公钥可以放心给任何人 在gith 阅读全文
posted @ 2021-11-20 16:45 sqw666 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 1. git init 将当前目录变成git可以管理的仓库 命令执行完后git就可以追踪在这个文件夹里面的变化 git里面有三种状态:Working directory,Staging area,Local repository。 2. git add tasks.txt 当tasks.txt是新建 阅读全文
posted @ 2021-11-20 16:24 sqw666 阅读(42) 评论(0) 推荐(0) 编辑