Skip to content

Commit

Permalink
HowTo: add -m "message" to commit command
Browse files Browse the repository at this point in the history
  • Loading branch information
dmstern committed Nov 26, 2018
1 parent e7f0602 commit 3165e45
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/views/HowTo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<h2>Define files that should be included in your npm package</h2>
<CodeBlock :title="`package.json (example)`" :code="data.codes[1]()" :language="`json`"></CodeBlock>
<h2>Commit everything</h2>
<CodeBlock code="git commit" language="bash"></CodeBlock>
<CodeBlock :code="data.codes[2]()" language="bash"></CodeBlock>
<h2>Create a new version of your package</h2>
<pre v-highlightjs><code class="bash">npm version [&lt;newversion&gt; | major | minor | patch ] [-m "VERSION_MESSAGE"]

Expand Down Expand Up @@ -117,6 +117,9 @@ export default class HowTo extends Vue {
"index.js"
]`;
},
() => {
return `git commit -am "<some descriptive message>"`;
},
);
}
}
Expand Down

0 comments on commit 3165e45

Please sign in to comment.