【发布时间】:2014-04-15 15:40:37
【问题描述】:
我正在尝试设置 Grunt 以提交到 Github 上的存储库。
在 Gruntjs 我有;
buildcontrol: {
options: {
dir: 'dist',
commit: true,
push: true,
message: 'Built %sourceName% from commit %sourceCommit% on branch %sourceBranch%'
},
pages: {
options: {
remote: 'git@github.com:numediaweb/test.git',
branch: 'gh-pages'
}
},
local: {
options: {
remote: '../',
branch: 'build'
}
}
},
但是当我执行命令 grunt buildcontrol:pages 时,我收到了这个警告;
Running "buildcontrol:pages" (buildcontrol) task
Warning: There are uncommitted changes in your working directory.
Please commit changes to the main project before you commit to
the built code.
我关注了this tutorial 和this one,但无法正常工作。我错过了什么吗?
【问题讨论】:
标签: git repository gruntjs npm githooks