#Git
2023-09-01
config
- 查看配置: `git config --list` - 全局:`--global` - 系统:`--system` - 仓库:`--local` - 设置邮箱: `git config --global user.email [email protected]` - 设置用户名: `git config --global user.name immwind`
2023-07-13
使用 filter-repo 修改 git 提交记录
前两天发现有个项目的 git 邮箱写错了,趁今天稍微空些准备祭出祖传的脚本进行修改,谁知出现提示: "git-filter-branch has a glut of gotchas generating mangled history rewrites. Hit Ctrl-C before proceeding to abort, then use an alternative filtering tool such as...

2021-08-13
GitHub Push 报错:Please use a personal access token instead
今天在提交 GitHub 其中一个仓库时,出现提示`remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.`

2021-08-03
GitHub 提交时自动过滤指定内容
最近把黑苹果升级到 Big Sur 之后导致 USB 无法识别,在更改配置时又发现电脑中存的几个版本都不对,无奈只能把原配置拷贝出来再进行更改。不过为了吸取之前的教训,准备把配置也放到 GitHub 上,但随之而来的问题是序列号如何处理。