From 7459d16e0be9dd738cb269ff0ca3a9e70f925846 Mon Sep 17 00:00:00 2001 From: fxzer Date: Mon, 17 Jun 2024 23:10:02 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=96=20=E6=9B=B4=E6=96=B0=E6=96=87?= =?UTF-8?q?=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...53\351\200\237\346\220\255\345\273\272.md" | 37 ++----------------- 1 file changed, 4 insertions(+), 33 deletions(-) diff --git "a/docs/FrontEnd/Other/Mac\347\263\273\347\273\237\347\216\257\345\242\203\345\277\253\351\200\237\346\220\255\345\273\272.md" "b/docs/FrontEnd/Other/Mac\347\263\273\347\273\237\347\216\257\345\242\203\345\277\253\351\200\237\346\220\255\345\273\272.md" index 309a4bcd..b7978be7 100644 --- "a/docs/FrontEnd/Other/Mac\347\263\273\347\273\237\347\216\257\345\242\203\345\277\253\351\200\237\346\220\255\345\273\272.md" +++ "b/docs/FrontEnd/Other/Mac\347\263\273\347\273\237\347\216\257\345\242\203\345\277\253\351\200\237\346\220\255\345\273\272.md" @@ -71,39 +71,10 @@ pnpm i -g @antfu/ni yarn taze rimraf cz-git czg commitizen vitest rollup tsup es ### Git配置 ```zsh -# ~/.gitconfig -[safe] - directory = /opt/homebrew/Library/Taps/homebrew/homebrew-core - directory = /opt/homebrew/Library/Taps/homebrew/homebrew-cask - directory = /opt/homebrew - directory = /opt/homebrew/Library/Taps/homebrew/homebrew-core/ - directory = /opt/homebrew/Library/Taps/homebrew/homebrew-cask/ - directory = /opt/homebrew/Library/Taps/homebrew/homebrew-services/ -[user] - name = xxx - email = xxx@163.com -[core] - excludesfile = ~/.gitignore - ignorecase = false # 区分大小写 -[filter "lfs"] - clean = git-lfs clean -- %f - smudge = git-lfs smudge -- %f - process = git-lfs filter-process - required = true -[alias] - # s = status -[push] - autoSetupRemote = true -[init] - defaultBranch = main -[credential] - helper = store -``` - -```zsh -# ~/.gitignore -.DS_Store -*/.DS_Store +git config --list # 查看全局配置 +git config --global user.name "xxx"(输入你的用户名) # 设置全局用户名 +git config --global user.email "xxx"(输入你的邮箱) # 设置全局邮箱 +git config --global core.ignorecase false # 区分大小写 ``` ### 增强 ZSH 功能: 安装 [ZIMFW](https://github.com/zimfw/zimfw) 或 [OhMyZsh](https://ohmyz.sh/)