Skip to content

Instantly share code, notes, and snippets.

@jsteenb2
Created November 7, 2025 21:12
Show Gist options
  • Select an option

  • Save jsteenb2/eb9ea7ff54248f1c5869121125b62eb0 to your computer and use it in GitHub Desktop.

Select an option

Save jsteenb2/eb9ea7ff54248f1c5869121125b62eb0 to your computer and use it in GitHub Desktop.

Catch Up on Branch Changes

This command reviews all changes between the current branch and main, analyzes key files, and provides a comprehensive summary to help you catch up on what's been done.

Steps:

  1. Get the current branch name and verify we're not on main

  2. Run git fetch origin main to ensure we have the latest main branch

  3. Run git diff main...HEAD --name-only to get list of changed files

  4. Run git diff main...HEAD --stat to get a summary of changes

  5. Run git log main..HEAD --oneline to get the commit history for this branch

  6. Read and analyze the most important changed files (prioritize: manifests, configs, core logic files)

  7. Provide a high-level summary including:

  • Branch purpose and scope of changes

  • Key files modified and their significance

  • Potential impact areas

  • Any notable patterns or architectural changes

  • Suggested review focus areas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment