随笔分类 -  Git

摘要:1. Increase Git Buffer Size This error can occur when the data size exceeds Git's buffer. Increase the buffer size: Open a terminal or Git Bash. Run t 阅读全文
posted @ 2024-11-16 11:24 快乐的在一起 阅读(64) 评论(0) 推荐(0) 编辑
摘要:在Git的版本控制中,我们经常会遇到需要回滚到之前的某个Commit的情况。回滚操作可以帮助我们撤销之前的更改,返回到某个稳定的状态。下面,我将介绍几种常见的Git回滚方法,并提供实际操作步骤和示例代码。 一、软回滚(Soft Reset) 软回滚会保留你的更改,但是会取消这些更改的提交。换句话说, 阅读全文
posted @ 2024-08-07 15:16 快乐的在一起 阅读(360) 评论(0) 推荐(0) 编辑
摘要:创建Git别名命令: git config --global alias.push-all '!git add -A && git commit -m "Auto commit" && git push' 每次只需要执行: git push-all 服务器创建脚本,一键拉数据 vi ~/.bashr 阅读全文
posted @ 2024-05-03 14:14 快乐的在一起 阅读(24) 评论(0) 推荐(0) 编辑
摘要:OpenSSL SSL_read: Connection was reset, errno 10054 git config --global http.sslVerify "false" 阅读全文
posted @ 2023-06-29 21:06 快乐的在一起 阅读(43) 评论(0) 推荐(0) 编辑
摘要:2. 让git忽略检查文件权限的改动:git config core.filemode false执行该命令后即可 1.覆盖所有git本地版本 git reset --hard 注意:执行命令前先查看git status还原的文件是否存在写入配置文件,避免还原导致丢失数据。 2.删除宝塔上文件,再使 阅读全文
posted @ 2020-10-27 14:33 快乐的在一起 阅读(1055) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示