【发布时间】:2023-04-08 14:41:02
【问题描述】:
我正在创建一个 package.json 脚本以使用 yarn 发送 git add . git commit -m "update" git push
我尝试使用一行按顺序发送上面的代码,但 git 不将其理解为不同的命令
我想要达到的目标:
"scripts": {
"push": "git add . git commit -m \"update\" git push"
}
yarn push // should send script above
是否可以在终端上发送多个 git 命令?
【问题讨论】: