错误

fatal: refusing to merge unrelated histories

解决方法:

git notes main --allow-unrelated-histories

错误2

请确保已在Git中配置您的“user.name”和“user.email” 解决方法:

git config --global user.name blycoris
git config --global user.email [email protected]

错误3

不断生成DS_Store问题 解决方法:

查询当前目录 所有的 .DS_Store

find . -name '*.DS_Store'

删除当前目录的.DS_Store

find . -name '*.DS_Store' -type f -delete

git 全局忽略配置

vim ~/.gitignore_global

在 ~/.gitconfig 中引入 .gitignore_global

[core]
	excludesfile = ~/.gitignore_global