smithery.ai

switch-main

mainブランチに切り替えて最新の状?

First seen Mar 21, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,068 B
  • docs SUMMARY.md 140 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Switch to Main

mainブランチに切り替えて最新の状態に更新します。

手順

以下の手順を順番に実行してください:

1. 現在の状態を確認

  • git status で未コミットの変更がないか確認
  • 未コミットの変更がある場合は、ユーザーに警告して続行するか確認

2. mainブランチに切り替え

  • git checkout main でmainブランチに切り替え
  • mainブランチが存在しない場合は git checkout master を試行

3. 最新を取得

  • git pull でリモートから最新の変更を取得

4. 結果を報告

  • 切り替え前のブランチ名
  • pull結果(更新されたファイル数など)

注意事項

  • 未コミットの変更がある場合は、stashするか確認すること
  • エラーが発生した場合は適切に処理し、ユーザーに報告すること