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

推荐订阅源

GbyAI
GbyAI
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
D
Docker
Blog — PlanetScale
Blog — PlanetScale
罗磊的独立博客
美团技术团队
V
V2EX
Last Week in AI
Last Week in AI
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
宝玉的分享
宝玉的分享
Microsoft Security Blog
Microsoft Security Blog
Microsoft Azure Blog
Microsoft Azure Blog
人人都是产品经理
人人都是产品经理
M
MIT News - Artificial intelligence
P
Proofpoint News Feed
B
Blog RSS Feed
博客园_首页
B
Blog
博客园 - 叶小钗
I
InfoQ
WordPress大学
WordPress大学
L
LangChain Blog
Apple Machine Learning Research
Apple Machine Learning Research
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
A
About on SuperTechFans
The GitHub Blog
The GitHub Blog
The Register - Security
The Register - Security
MyScale Blog
MyScale Blog
云风的 BLOG
云风的 BLOG
博客园 - 司徒正美
Latest news
Latest news
W
WeLiveSecurity
T
The Exploit Database - CXSecurity.com
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
Cyberwarzone
Cyberwarzone
Scott Helme
Scott Helme
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
CERT Recently Published Vulnerability Notes
C
CXSECURITY Database RSS Feed - CXSecurity.com
Recent Commits to openclaw:main
Recent Commits to openclaw:main
N
News and Events Feed by Topic
S
Secure Thoughts
The Hacker News
The Hacker News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind 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