惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
News and Events Feed by Topic
D
Docker
云风的 BLOG
云风的 BLOG
F
Fortinet All Blogs
F
Full Disclosure
H
Hackread – Cybersecurity News, Data Breaches, AI and More
P
Proofpoint News Feed
Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学
The GitHub Blog
The GitHub Blog
L
LangChain Blog
H
Help Net Security
B
Blog
T
Tailwind CSS Blog
V
V2EX
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
Recent Announcements
Recent Announcements
aimingoo的专栏
aimingoo的专栏
美团技术团队
A
About on SuperTechFans
C
Cybersecurity and Infrastructure Security Agency CISA
K
Kaspersky official blog
I
InfoQ
Project Zero
Project Zero
I
Intezer
Google DeepMind News
Google DeepMind News
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
Threat Research - Cisco Blogs
Last Week in AI
Last Week in AI
C
Cyber Attacks, Cyber Crime and Cyber Security
G
GRAHAM CLULEY
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
AWS News Blog
AWS News Blog
Spread Privacy
Spread Privacy
S
Securelist
Recorded Future
Recorded Future
D
Darknet – Hacking Tools, Hacker News & Cyber Security
博客园 - 叶小钗
S
Security Affairs
Blog — PlanetScale
Blog — PlanetScale
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
罗磊的独立博客
The Hacker News
The Hacker News

博客园 - 君临天下之徐少

nvm安装 Homebrew 安装 Less的优点 什么是nrm js 处理大数相减 React函数式组件值之useRef()和useImperativeHandle() 谷歌刷题插件安装 SSL certificate problem: unable to get local issuer certificate 错误解决 Mac安装Nvm Node开发环境 解决Mac安装Homebrew失败 Canvas学习:globalCompositeOperation详解 React.CreateContext html让容器居中,css让容器水平垂直居中的7种方式 js下载文件防止白屏 GitHub上README.md编写教程(基本语法) 微信字体大小调整导致的H5页面错乱问题处理 G6-Editor 编辑器入门使用教程 git reset 加不加 --hard的区别 taro, h5拨打电话和发送短信
常用命令
君临天下之徐少 · 2022-10-31 · via 博客园 - 君临天下之徐少
git config --global user.name "Your Name" // 设置git用户名和邮箱

git config --global user.email you@example.com

1. npm, yarn,pnpm的设置

npm set registry https://xxx.com  // 设置源
npm adduser --registry https://xxx.com // 创建用户
npm profile set password --registry https://xxx.com
// 设置源
yarn config set registry https://xxx.com.

pnpm set registry https://xxx.com
pnpm adduser --registry https://xxx.com
pnpm profile set password --registry https://xxx.com

2. 运行 git remote add <shortname> <url> 添加一个新的远程 Git 仓库

// 在项目test2的feature/B分支执行下方命令,
git checkout -b feature/A git checkout feature/A git remote add test1 https://XXX.com/XXX/A // 运行 git remote add <shortname> <url> 添加一个新的远程 Git 仓库 git pull test1 feature/A --allow-unrelated-histories // 拉取test1项目的feature/A的分支 ,因为不同git仓库需要加上(--allow-unrelated-histories)【允许不相关历史提交,并强制合并】 # npm run build git add . git commit -m 'feat: 在项目test2下的featut/B拉去test1项目下的feature/A分支代码合并' # git push --force-with-lease origin feature/A // 强制提交 git push origin feature/A