mac环境配置

homebrew  https://zhuanlan.zhihu.com/p/90508170  

nvm安装 https://www.jianshu.com/p/6939619c9564  

nvm  https://www.cnblogs.com/AAmao/p/15424498.html  

下载 git clone https://github.com/nvm-sh/nvm.git 

cd nvm  ./install.sh  vi ~/.zshrc.

item2  https://zhuanlan.zhihu.com/p/90508170   

vim ~/.zshrc    dst皮肤真的很好看

配置主题颜色 wget安装 https://blog.csdn.net/wangzhongshun/article/details/122089389  

Nrm下载 npm install -g nrm  

Npm install –global yarn

sudo vi /etc/hosts   cat /etc/hosts 查看

我的电脑npm全局路径   /usr/local/bin

查看npm 全局安装在哪个位置 npm root -g

Git config --list    配置git命令

alias.st=status

alias.ci=commit

alias.ci-a=commit -a

alias.pr=pull --rebase

alias.co=checkout

alias.br=branch

切换node 版本nvm管理nvm use 16

npm install

npm run client:prod

cd dist

tar czvf source.tar *

scp source.tar blood-cloud:/usr/local/nginx-1.21.1/html

tar xzvf  /usr/local/nginx-1.21.1/html/source.tar

 

ssh-keygen -t rsa -f ~/.ssh/ssh-ed25519 -C "baimingyu@4paradigm.com"

 

git 多源提交:

git remote add new git地址

git push origin main #提交到原来的ip地址的git

git push new 分支 #提交的新的git 

posted @ 2023-11-18 10:02  国服第一李师师  阅读(10)  评论(0编辑  收藏  举报