git修改提交的用户名

第一步,设置新的用户名

1
2
git config user.name terwer
git config user.email youweics@163.com

第二步,修正用户名

1
git commit --amend --reset-author --no-edit

使用pnpm管理nodejs项目

安装pnpm(推荐)

1
npm install -g pnpm

使用shell安装

1
wget -qO- https://get.pnpm.io/install.sh | sh -
1
2
3
4
5
6
7
8
9
10
11
12
13
14
➜  ~ wget -qO- https://get.pnpm.io/install.sh | sh -
==> Extracting pnpm binaries 7.2.1
Copying pnpm CLI from /private/var/folders/zf/9tds5vx92wjcpsv29806knk80000gn/T/tmp.3lLgcfhm/pnpm to /Users/terwer/Library/pnpm/pnpm
Appended new lines to /Users/terwer/.zshrc

Next configuration changes were made:
export PNPM_HOME="/Users/terwer/Library/pnpm"
export PATH="$PNPM_HOME:$PATH"

Setup complete. Open a new terminal to start using pnpm.
➜ ~ source ~/.zshrc
➜ ~ pnpm -v
7.2.1
➜ ~