随笔分类 - git学习
用到的git记录一下
摘要:错误: kex_exchange_identification: Connection closed by remote host Connection closed by 198.18.0.11 port 22 fatal: 无法读取远程仓库。 解决 网上查阅资料,有人说是因为挂了VPN导致的,禁
阅读全文
摘要:1、github上创建项目 2、idea本地创建项目 3、在项目目录下使用git init 可能出现下面情况,使用推荐命令设置一下就行 4、关联远程仓库 git remote add origin git@github.com:username/CoreJavaVolume2.git 5、将不需要的
阅读全文
摘要: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
阅读全文
摘要:配置一个远程库 查看当前fork配置的远程仓库 $ git remote -v > origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (fetch) > origin https://github.com/YOUR_USERNAME/YOUR
阅读全文
摘要:如何生成SSH key ssh-keygen -t rsa -C "youremail@example.com" 运行这串代码之后会在/users/用户名/.ssh/文件夹下找到两个文件:id_rsa和id_rsa.pub. id_rsa.pub里存有生成的公钥,这个公钥可以放心给任何人 在gith
阅读全文
摘要:1. git init 将当前目录变成git可以管理的仓库 命令执行完后git就可以追踪在这个文件夹里面的变化 git里面有三种状态:Working directory,Staging area,Local repository。 2. git add tasks.txt 当tasks.txt是新建
阅读全文