npm常用命令
查看当前源
npm config get registry
切换源
npm config set registry registry.npm.taobao.org/
npm config set registry registry.npmjs.org/
git 常用命令
回退代码到某次提交
git reset --hard commit-hash
强推代码
git push -f origin your_branch_name
查看git配置
- git config --global --list 【全局配置】
- git config --local --list 【仓库配置】
- git config --system --list 【系统配置】
设置用户名和邮箱
- git config --global user.name "Your Name"
- git config --global user.email "your.email@example.com"