Skip to content
CommandImported

update-branch-name

Rename the current branch to a descriptive name based on its changes against main

Imported description, not reviewed yet

This item came from its original repository and was only scanned automatically; no editor has written an Arabic description for it yet. Read its content yourself before you rely on it. This page is not indexed by search engines until it is reviewed.

Download

Files: 1 · Size: 1.6 KB

Download the ZIP

The file carries the license of the original source.

Install

After downloading, run the command in a terminal. unzip asks before it replaces any file that is there.

  • For this project

    It goes in: .claude/commands/

    mkdir -p .claude/commands && unzip ~/Downloads/update-branch-name.zip -d .claude/commands

  • For your account on the whole machine

    It goes in: ~/.claude/commands/

    mkdir -p ~/.claude/commands && unzip ~/Downloads/update-branch-name.zip -d ~/.claude/commands

Instructions

Update Branch Name

Follow these steps to update the current branch name:

  1. Check differences between current branch and main branch HEAD using git diff main...HEAD
  2. Analyze the changed files to understand what work is being done
  3. Determine an appropriate descriptive branch name based on the changes
  4. Update the current branch name using git branch -m [new-branch-name]
  5. Verify the branch name was updated with git branch

Files

  • LICENSE1 KB
  • update-branch-name.md547 B

Comments (0)

No comments yet. Be the first.

Sign in to comment. Commenting comes at level 1 (Member).

Report