更新全局用户名以及邮箱
1 2
| git config --global user.name 你的目标用户名 git config --global user.email 你的目标邮箱名
|
Git 如何忽略已经提交的文件
1 2 3 4 5 6 7 8 9 10
| git status git rm -f [文件名] git commit -a -m ":fire:删除不需要的文件" git push
git rm --cached [文件或目录名]
|
MacOS 禁用 osxkeychain
执行
1
| git config --get-all --show-origin credential.helper
|
输出:
1
| file:/Library/Developer/CommandLineTools/usr/share/git-core/gitconfig osxkeychain
|
sudo
编辑:
1
| sudo vim /Library/Developer/CommandLineTools/usr/share/git-core/gitconfig
|
并注释掉这一行 credential.helper=osxkeychain