pick f7f3f6d changed my name a bit pick 310154e updated README formatting and added blame pick a5f4a0d added cat-file
# Rebase 710f0f8..a5f4a0d onto 710f0f8 # # Commands: # p, pick = use commit # e, edit = use commit, but stop for amending # s, squash = use commit, but meld into previous commit # # If you remove a line here THAT COMMIT WILL BE LOST. # However, if you remove everything, the rebase will be aborted.
编辑上述列表文件,在需要更改的 commit 前,将 pick 修改为 edit ,如果需要压缩可设置为 squash 保存退出,进入到 rebase 流程; 通过git commit --amend --author对历史记录依次修改和持续进行 rebase
$ssh -T git@github.com Warning: Permanently added the RSA host key for IP address '13.250.177.223' to the list of known hosts. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0777 for'/root/.ssh/id_rsa' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "/root/.ssh/id_rsa": bad permissions Permission denied (publickey).
$ chmod 600 * $ echo -e "yes" | ssh -T git@github.com Hi WeiyiGeek! You've successfully authenticated, but GitHub does not provide shell access.
问题5.使用新密钥时执行 git clone 或者 push 时报The authenticity of host 'github.com (192.30.255.112)' can't be established.解决方法。
问题描述:
1 2 3
The authenticity of host 'github.com (192.30.255.112)' can't be established. RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8. Are you sure you want to continue connecting (yes/no)? //输入yes,回车
**问题8.执行git push命令时报 `Connection reset by 20.205.243.166 port 22` 错误**
问题描述: 由于国内网络波动原因,有时需要进行代理访问。 ```bash # 错误1 $ ssh -T git@github.com ssh: connect to host github.com port 22: Connection timed out
# 错误2 $ git push -u origin main kex_exchange_identification: read: Connection reset by peer Connection reset by 20.205.243.166 port 22 fatal: Could not read from remote repository.
解决办法: ssh添加代理搞定的, 如果是 Windows 用户编辑 ~/.ssh/config 文件,给文件加上以下内容,重启git bash, 温馨提示具体端口需要根据你的代理软件设置决定。
1 2 3
Host github.com User git ProxyCommand connect -H 127.0.0.1:6789 %h %p
方式1.请访问本博主的B站【WeiyiGeek】首页关注UP主, 将自动随机获取解锁验证码。
Method 2.Please visit 【My Twitter】. There is an article verification code in the homepage.
方式3.扫一扫下方二维码,关注本站官方公众号
回复:验证码
将获取解锁(有效期7天)本站所有技术文章哟!