Git 使用过程问题汇总

 

Git 用起来真方便 ,我给你说隔一段时间就会遇到一个问题  、

1. RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60 The remote end hung up unexpectedly The remote end hung up unexpectedly

PS:这是 Git push 代码的时候大小限制问题 

首先查看你的 git 设置 命令行 : git config --list

会看见这行配置 (后面的数字代表的是大小限制)。

http.postbuffer=8242880000

解决方法 

 git config --global http.postBuffer 82428800000

2. git commit 到本地分支之后 ,因为某些原因需要重新回退 。

直接按照 AS 上的操作 。

点击分支右键吧 ,选中 Reset Current Branch to Here...

PS :选Mixed 。

直接 Reset 。

命令行

查找 commit id

git log 

如下图

yinzihandeMacBook-Pro:EduSohoAndroidClient yinzh$ git log
commit 7a22fdd44e263294fc37dcbb809417a3aedc3 (HEAD -> dev_5.5.1, origin/dev_5.5.1, dev_5.5.2)
Author: Super 含 <[email protected]>
Date:   Fri Mar 6 09:57:40 2020 +0800

    紧急版本提测。

commit 1da0b7e74a90a4e0a824bca4368a9c95b3339
Author: Super 含 <[email protected]>
Date:   Wed Feb 26 15:12:39 2020 +0800

    仿真 。

回退到上次提交前 。

yinzihandeMacBook-Pro:EduSohoAndroidClient yinzh$ git reset --hard 7a22fdd44e263294fc37dcbb809417a3aedc3
发布了71 篇原创文章 · 获赞 57 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/qq_37492806/article/details/104676072