no-more-masters:将默认的Git分支从master重命名为Production

时间:2021-04-02 21:57:22
【文件属性】:
文件名称:no-more-masters:将默认的Git分支从master重命名为Production
文件大小:43KB
文件格式:ZIP
更新时间:2021-04-02 21:57:22
git cli blm branches anti-racist 不再是主人 将默认的Git分支从master重命名为main。 该脚本要求您具有。 同样,如果您为master启用了分支保护,请考虑关闭它们,以便脚本可以从远程存储库中删除分支。 安装 $ npm install -g no-more-masters 用法 $ no-more-masters OPTIONS -b, --branch=branch [default: main] The branch name to create -h, --help show CLI help -v, --version show CLI version 这是在做什么 git checkout -b main master :从master创建分支main git push origin main :将main分支推送到您的遥控器 使用,将main设置为
【文件预览】:
no-more-masters-production
----.eslintrc(25B)
----LICENSE.txt(1KB)
----src()
--------index.js(4KB)
----test()
--------index.test.js(427B)
--------mocha.opts(43B)
----README.md(1KB)
----.editorconfig(171B)
----.gitignore(72B)
----bin()
--------run(81B)
--------run.cmd(31B)
----package-lock.json(137KB)
----package.json(1KB)

网友评论