Files
skillshare/website/i18n/ja/docusaurus-plugin-content-docs/current/reference/commands/commit.md
T
Willie cf36965cea feat(website): add zh-Hant/zh-Hans/ja/ko locales with initial docs translation
Sets up Docusaurus i18n for Traditional Chinese, Simplified Chinese,
Japanese, and Korean: locale config, navbar/footer/sidebar UI chrome,
and translated content for intro, getting-started, understand, and
reference/commands. Untranslated pages fall back to English.

Pins explicit heading anchors ({#id}) on English source pages that are
linked to by fragment, so translated headings don't change the anchor
id and break cross-page links. Converts a handful of relative .md
links that crossed from an untranslated page into a now-translated
one, since Docusaurus resolves those per-locale and they'd otherwise
404 outside English.
2026-09-20 11:08:48 +08:00

3.3 KiB
Raw Blame History

sidebar_position
sidebar_position
1

commit

source skills をプッシュせずにローカルの git commit を作成します。

skillshare commit                         # デフォルトメッセージでコミット
skillshare commit -m "Update skill"       # カスタムメッセージ
skillshare commit --dry-run               # プレビュー

使うタイミング

  • Skill の編集を試す前にローカルのチェックポイントを保存する
  • リモートが設定されていないマシンや source リポジトリで変更をコミットする
  • マシン間で変更を共有せず、ローカルの履歴を分けて管理する

コミットとプッシュの両方を git remote に対して行いたい場合は push を使ってください。

実行内容

flowchart TD
    CMD["skillshare commit"]
    CHECK["1. Check repository status"]
    STAGE["2. Stage all changes"]
    COMMIT["3. Commit"]
    CMD --> CHECK --> STAGE --> COMMIT

commit は skills source ディレクトリ内のすべての変更を stage し、git commit を作成します。remote は不要で、git push は一切実行されません。

オプション

フラグ 説明
-m, --message <msg> コミットメッセージ(デフォルト: "Update skills")
--dry-run, -n 変更を加えずにプレビュー

Git Root スコープ

commit は git_root の設定フィールド(デフォルト: skills source)で選択されたディレクトリに対して動作します。バージョン管理対象のディレクトリを変更するには skillshare init --git-root <scope> を使用します。有効なスコープ:

スコープ ディレクトリ
skills(デフォルト) Skills source(~/.config/skillshare/skills/)
agents Agents source(~/.config/skillshare/agents/)
extras Extras source(~/.config/skillshare/extras/)
root 設定ルート(~/.config/skillshare/)— skills + agents + extras を 1 つのリポジトリでバージョン管理

git_root を変更したのに git リポジトリが別のスコープのディレクトリに残っている場合、commit は "Git root mismatch" エラーを表示し、修正に必要な正確な git init / mv コマンドを提示します。詳細は Changing the scope after init を参照してください。

前提条件

skills source ディレクトリが git リポジトリである必要があります。

skillshare init

source が git リポジトリでない場合、commit はセットアップのヒントを表示し、ファイルを変更せずに終了します。

例

# デフォルトメッセージでコミット
skillshare commit

# カスタムメッセージでコミット
skillshare commit -m "Update review skill"

# コミットせずにステージされたファイルとメッセージをプレビュー
skillshare commit --dry-run

関連項目

  • push — コミットして git remote にプッシュ
  • pull — remote からプルして targets に sync
  • status — git と sync の状態を確認