Skip to content

Commit 18acfa3

Browse files
committed
Deploying to gh-pages from @ 63c529d 🚀
1 parent f4bce09 commit 18acfa3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

config/configuration_file/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2132,6 +2132,13 @@ <h2 id="file-location-and-search-order">File Location and Search Order<a class="
21322132
<li><code>cz.toml</code></li>
21332133
</ol>
21342134
<p>The first valid configuration file found will be used. If no configuration file is found, Commitizen will use its default settings.</p>
2135+
<div class="admonition note">
2136+
<p class="admonition-title">Note</p>
2137+
<p>Commitizen supports explicitly specifying a configuration file using the <code>--config</code> option, which is useful when the configuration file is not located in the project root directory.
2138+
When <code>--config</code> is provided, Commitizen will only load configuration from the specified file and will not search for configuration files using the default search order described above. If the specified configuration file does not exist, Commitizen raises the <code>ConfigFileNotFound</code> error. If the specified configuration file exists but is empty, Commitizen raises the <code>ConfigFileIsEmpty</code> error.</p>
2139+
<div class="highlight"><pre><span></span><code>cz<span class="w"> </span>--config<span class="w"> </span>&lt;PATH&gt;<span class="w"> </span>&lt;command&gt;
2140+
</code></pre></div>
2141+
</div>
21352142
<div class="admonition tip">
21362143
<p class="admonition-title">Tip</p>
21372144
<p>For Python projects, it's recommended to add your Commitizen configuration to <code>pyproject.toml</code> to keep all project configuration in one place.</p>

search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)