相关疑难解决方法(0)

如何使用npm脚本使用自定义提交消息推送到github?

在我,package.json我有这个

  "scripts": {
    "start": "gulp serve",
    "git": "git add . && git commit -m 'some-message' && git push --all"
  },
Run Code Online (Sandbox Code Playgroud)

在我运行的终端npm run git中,推送更改.但是如何动态更改提交消息?例如npm run git MESSAGE='another commit'

git node.js npm npm-scripts

5
推荐指数
1
解决办法
1894
查看次数

标签 统计

git ×1

node.js ×1

npm ×1

npm-scripts ×1