-
Notifications
You must be signed in to change notification settings - Fork 932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to customize deployment commit message #80
Comments
Hi @IndCore, thanks for asking. When I first saw this Issue, I didn't know how to do this. Since then, I looked into it and found a way. As a reminder:
The CLI command we run in step 7 causes the The # In repository root...
$ ./node_modules/.bin/gh-pages --version
3.2.3
$ ./node_modules/.bin/gh-pages --help
Usage: gh-pages [options]
Options:
# ...(this is an EXCERPT of the full output)...
-m, --message <message> commit message (default: "Updates")
-n, --no-push Commit only (with no push)
-h, --help output usage information As shown in the Currently, as the tutorial is written today, the developer (e.g. you, me) isn't running # INSTEAD of running `$ npm run deploy`, I would run...
$ npm run build
$ ./node_modules/.bin/gh-pages -d build -m "This is a custom commit message" Or, as a one-liner: # INSTEAD of running `$ npm run deploy`, I would run...
$ npm run build && ./node_modules/.bin/gh-pages -d build -m "This is a custom commit message" Other than the Thanks again for asking this question. I also was dissatisfied with the default commit message, but hadn't looked into customizing it. Seeing this Issue motivated me to do so. |
Hi again @IndCore, I just learned something new (after posting my previous comment). When issuing the In our case, we can append So, the procedure I recommend for specifying a custom commit message is: In step 7, instead of running this (which -- under the hood -- causes $ npm run deploy Run this: $ npm run deploy -- -m "Your custom message" In fact, that is what I plan to start doing, myself, when I make deployments. I also plan to update the tutorial with this tip! |
not work with me?!!! |
When I run
npm run deploy
, it commits to my gh-pages branch with the commit messageUpdates
, which is not very descriptive and I would want to customize, how can I do that?The text was updated successfully, but these errors were encountered: