gpg: signing failed: Inappropriate ioctl for device 解决办法

最近换了系统, git commit 在gpg签名的时候出错了: gpg: signing failed: Inappropriate ioctl for device 原因是 gpg 在当前终端无法弹出密码输入页面。 解决办法: export GPG_TTY=$(tty) 重新 …
Read more →

Rename Hugo Blog Git Repo Branch From master To main

最近编译了最新版的Git, 发现init repo的时候会提示配置全局默认branch (这事儿都是由black lives matter运动搞起的)。好吧,
Read more →

坑爹 – Ubuntu 版的 Git 使用的 GnuTLS 而不是 OpenSSL 提供的 TLS 实现

起因 为什么用的是Ubuntu? 老灯你不是喜欢ArchLinux的么? 没错,这个Ubuntu只是老灯在工作环境使用的, 主要是团队要求。与大家保
Read more →

如何批量修改 Git 提交记录中的作者名称和邮箱

适用场景: 已经提交了N个commit才发现用的配置(user.name 和 user.email)错了,比如要用个人邮箱的,用成了公司邮箱。 基于
Read more →

Git 配置文件中 Conditional Includes 的使用

使用场景 个人电脑里同时有公司的项目的源码和自己的开源项目的源码,而一般在公司使用的name和email配置跟家用的都是区分开的。 如何实现,在
Read more →